Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #54.9K
anyone remembers the syntax of reading a file into C and subsequently printing it out? for eg. i have the file 'matrix.txt' the contents inside the file is as follows: <matrix> rows = 2; cols = 2; 1 2 2 4 </matrix> how do i read it into my C … |
|
below is one of my function call of a program done in C: /* asks if the players would like to have another game of Tic Tac Toe */ void prompt_user(int game[][SIZE]) { char reply; printf("\nPlay Again? (Y/N): "); scanf("%c", &reply); if(reply == 'Y' || reply == 'y') { print_empty_board(); … |