[Courses] re: [C] lesson 7
Morgon Kanter
venthorn at surgo.linuxchix.org
Sun Nov 3 17:29:39 EST 2002
Hello,
After doing the lesson 7 excercises, I thought it would be a good idea to
make a header file of some of the common stuff we'd been doing. So here is
one of the excercises.
char consonent_or_vowel(char letter) {
char returnchar[10];
switch (letter) {
case a:
case A:
case e:
case E:
case i:
case I:
case o:
case O:
case u:
case U:
returnchar = "consonent";
break;
default:
returnchar = "vowel";
break;
}
return returnchar;
}
If I made an error, please let me know.
--
Get my public key at http://www.surgo.net/pubkey.asc
More information about the Courses
mailing list