Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

guessing a-z

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.

Name: Anonymous 2007-01-27 4:56

>>10
I lol, Haskell lovers pretend their code is awesome and here I see a huge pile of crap that would be more readable in assembly language if I wrote it :D

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List