Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int events, couples, k = 0, j = 0;
- FILE *fp;
- fp = fopen("input.txt", "r");
- fscanf(fp, "%d", &events);
- fscanf(fp, "%d", &couples);
- char* array[couples];
- while( k < events )
- {
- k++;
- for( j; j < couples; j++ )
- {
- fscanf(fp, "%s", &array[j]);
- printf("%s", array[j]);
- }
- }
- getch();
- }
Add Comment
Please, Sign In to add comment