[[lesson_7_cin_char.c]] Rescued by C++ Reloaded

Route:


[user02@FC4 Lesson07]$ cat -n cin_char.c
1 #include <stdio.h> 2 3 int main(void) 4 { 5 char letter; 6 7 printf("Type any character and press Enter: "); 8 scanf("%c", &letter); 9 printf("The letter typed was %c\n", letter); 10 11 return 0; 12 }
[user02@FC4 Lesson07]$ gcc -o cin_char cin_char.c
[user02@FC4 Lesson07]$ ./cin_char
Type any character and press Enter: brown
The letter typed was b
[user02@FC4 Lesson07]$ ./cin_char
Type any character and press Enter: .4
The letter typed was .
lesson_7_cin_char.c, Rev. 1, Last changed on 2005-08-10 03:17, 326 page hits
Help others to find those things you like

Have you already seen the Tag it! button on the top right of the wiki pages?

Look into the tag cloud
Wiki hosted for free at wikihost.org || RSS-Feed || GeboGebo 1.3.3 || 00.119 seconds || || PAGERANK TOOLS