Tuesday, March 17, 2009

Disconnection Letter Fromat

terzofile.c


# include int numbers [10];
numeri1 int [10];
int i = 0;
char name [30];
char name [10] [30];
nomi1 char [10] [30];
FILE * f1;
void load () {
printf ("enter ten Sometimes the names and ages \\ n ");
for (i = 0; the <10; i++){
scanf ("% s% d ", names [i], & numbers [i]);
}
}
void write () {
f1 = fopen ("filenumeri.txt", "w");
for (i = 0; the <10; i++){
fprintf (f1, "% s% d \\ n", names [i], & numbers [i]);}

fclose (f1);}

void read () {
f1 = fopen ("filenumeri.txt", "r");
for (i = 0; the <10; i++){
fscanf (f1, "% s% d", nomi1 [i], & numbers [i]);
}
fclose (f1);
}
void print () {
for (i = 0; the <10; i++){
printf ("% s% d \\ n", nomi1 [i] , & numbers [i]);
}}

main () {
charge ();
write ();
read ();
print ();}

__________________________________________________________________________
Free Image Hosting at www.ImageShack.us

QuickPost QuickPost this image to Myspace, Digg, Facebook, and others!

0 comments:

Post a Comment