-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
333da65
commit beb2fd6
Showing
7 changed files
with
88 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,7 +80,7 @@ int main(void){ | |
.c0 = '-', | ||
.c1 = '-', | ||
.c2 = '-', | ||
}; | ||
}; | ||
|
||
while(1) { | ||
board_print(game_board); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
|
||
#include <stdio.h> | ||
|
||
int main() { | ||
FILE *pF = fopen("test.txt","w"); | ||
|
||
fprintf(pF, "spongebob sqquerpants KIRA AND RYUK"); | ||
fclose(pF); | ||
return 0; | ||
} | ||
|
||
|
||
#include <stdio.h> | ||
int main() { | ||
FILE *pF = fopen("/Users/jack/book/poem.txt","r"); | ||
char buffer[255]; | ||
while(fgets(buffer,255,pF) != NULL) { | ||
printf("%s", buffer); | ||
} | ||
fclose(pF); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters