Apr 22, 2009 04:42
Homework is eating my brain, and it's the dumbest thing. I've got the whole program running, except for getting it to error trap for blank spaces/multiple words (the user is supposed to enter a single word). The closest I've been able to get is..
while (word.contains(" "))
{
// error message
// get new word
}
Except it doesn't work for a blank (" "). It will work with any random letter or symbol, but not a space and I can't figure out what I'm doing wrong. ;_;
techno geekery,
random