Completato esercizio di gestioen database client-server. Archivio.txt e comandi aggiungi nome voto,verifica nome.
This commit is contained in:
BIN
test/test2
Executable file
BIN
test/test2
Executable file
Binary file not shown.
24
test/test2.c
Normal file
24
test/test2.c
Normal file
@@ -0,0 +1,24 @@
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
#include <ctype.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
|
||||
int main (int index, char** in_data){
|
||||
|
||||
char a [100];
|
||||
char b;
|
||||
char c [100];
|
||||
char d [100];
|
||||
sprintf(d,"eeee");
|
||||
sprintf(a,"alfred ");
|
||||
sscanf (a,"%s%s",c,d);
|
||||
fprintf(stdout,"%s\n",c);
|
||||
fprintf(stdout,"%s\n",d);
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
24
test/test2.c~
Normal file
24
test/test2.c~
Normal file
@@ -0,0 +1,24 @@
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
#include <ctype.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
|
||||
int main (int index, char** in_data){
|
||||
|
||||
char a [100];
|
||||
char b;
|
||||
char c [100];
|
||||
char d [100];
|
||||
sprint(d,"eeee");
|
||||
sprintf(a,"alfred ");
|
||||
sscanf (a,"%s%s",c,d);
|
||||
fprintf(stdout,"%s\n",c);
|
||||
fprintf(stdout,"%s\n",d);
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user