#include <stdio.h>
#include <stdlib.h>
int main ()
{
char gr[1000];
int no[1000];
int i;
FILE *fp;
fp = fopen("profit.in","r");
for (i=0; i<10; i++)
{
fscanf(fp,"%d",&no[i]);
printf("nombers: %d\n",no[i]);
fscanf(fp,"%s",&gr[i]);
printf("letters:%s",gr[i]);
}
fclose(fp);
getchar();
return 0;
}
But when i am running it, it stops...do you have any suggestions?

New Topic/Question
Reply




MultiQuote







|