Thursday, July 16, 2009
2 TEXT BOXES (ADDING NUMBERS)-APPLET
import java.awt.*;
import java.awt.event.*;
public class Addition extends Applet implements ActionListener{
Label lbl1,lbl2;
TextField tf1,tf2;
int num,sum;
String s;
public void init()
{ sum=0;
lbl1=new Label("Doste enan akeraio kai pathste Entre:");
add(lbl1);
tf1=new TextField(10);
add(tf1);
tf1.addActionListener(this);
lbl2=new Label ("To athroisma einai:");
add(lbl2);
tf2=new TextField(15);
add(tf2);
}
public void actionPerformed(ActionEvent e) {
s=e.getActionCommand();
num=Integer.parseInt(s);
sum=sum+num;
tf1.setText("");
s=Integer.toString(sum);
tf2.setText(s);
}
Wednesday, December 31, 2008
C++ Lesson1(Compiler)
- sourse file
- Compiler
- object
- linker
- exe
Source program -> grade.cpp --> Cpp is the extension of sourse file and shows that this file includes a program in C plus plus
Thursday, December 11, 2008
SQL ->DATA TYPES
IN A SQL SERVER WE CAN FIND MANY TYPES OF DATA:
1. STRINGS
- char [ ( n ) ]
Fixed-length, non-Unicode character data with a length of n bytes. n must be a value from 1 through 8,000. The storage size is n bytes. The ISO synonym for char is character.
- varchar [ ( n | max ) ]
Variable-length, non-Unicode character data. n can be a value from 1 through 8,000. max indicates that the maximum storage size is 2^31-1 bytes. The storage size is the actual length of data entered + 2 bytes. The data entered can be 0 characters in length. The ISO synonyms for varchar are char varying or character varying.
- nchar [ ( n ) ]
Fixed-length Unicode character data of n characters. n must be a value from 1 through 4,000. The storage size is two times n bytes. The ISO synonyms for nchar are national char and national character.
- nvarchar [ ( n | max ) ]
Variable-length Unicode character data. n can be a value from 1 through 4,000. max indicates that the maximum storage size is 2^31-1 bytes.
2.TIME DATE
Datetime its about date and time 4 byte for date and four for time
3)NUMBER
- decimal[ (p[ , s] )] and numeric[ (p[ , s] )]
Fixed precision and scale number When maximum precision is used, valid values are from - 10^38 +1 through 10^38 - 1. The ISO synonyms for decimal are dec and dec(p, s). numeric is functionally equivalent to decimal.
4)FLOATS
- float Depends on the value of n 8 OR 4 BYTES
- real 4Bytes
- 5) INTEGER
- bigint 8 Bytes
- int 4 Bytes
- smallint 2Bytes
- tinyint 1 Byte
......................ABOUT MONEY ...................
- money 8 bytes
- smallmoney 4 bytes
Wednesday, December 10, 2008
Welcome to my blog!!!
I decided to create a new blog about computer programing...so i am thinking to write some articles about web designing , programing, data bases, etz. on my opinion reading these articles a beginner will manage to "speak these languages, and made programs ....then he will be able to extend his knowledge



