Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void intr() {
- FILE *f=fopen("num4in.txt","w");
- int *p1;
- printf("Cite numere doriti sa introduceti?");
- scanf("%d",&n);
- for(int i=0;i<n;i++)
- {printf("\nNumarul %d :",i+1); scanf("%d",p1);
- fprintf(f,"%3d",*p1);
- }
- fclose(f);
- void afis(){
- int *p1;
- FILE *f=fopen("num4in.txt","rb");
- while(!feof(f)){
- fscanf(f,"%3d",p1);
- printf("|%d",*p1);
- }
- getch();
- fclose(f);
- }
Add Comment
Please, Sign In to add comment