Name: Mattew 2007-01-26 2:49
hey, i could use a little help with this code for C++. I have been at it for several hours now and being a fresh new programmer to C++. I was wondering if someone could give me some help or sutocode for this game.
And here is the rand() code that I have:
// ASCII code for lower case a-z.
char randChoice = rand() % 25 + 98;
Write a game that picks a random letter between ‘a’ and ‘z’ (the lowercase alphabet). Read a character (and the newline that must follow it) and tell the user how many letters away they are. Repeat until they guess the right one.
And here is the rand() code that I have:
// ASCII code for lower case a-z.
char randChoice = rand() % 25 + 98;
Write a game that picks a random letter between ‘a’ and ‘z’ (the lowercase alphabet). Read a character (and the newline that must follow it) and tell the user how many letters away they are. Repeat until they guess the right one.