This is an old revision of the document!


	char *word_list[10][20]; // 10 words, each word has 20 byte, 19 letters

	int word_cnt;

	printf("How many words do you want?:");
	scanf("%d", word_cnt);

	printf("Please enter %d words\n", word_cnt);

	for( int i=0; i<word_cnt; i++) {
		printf("Enter %d th word:", i);
		scanf("%s", word_list[i]);
	}
 
class/os2014f/hw1.1410404098.txt.gz · Last modified: 2025/10/13 13:00 (external edit) · [Old revisions]
Recent changes RSS feed Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki