None of the really active users on this forum have the power to delete or lock threads. Only the admins can. We haven't had so many problems with disruptive individuals that we needed mods.
Besides, there's no reason to delete it other than "it's not needed". Some of what is discussed here might answer questions for someone else. :)
ah, well that makes sense. its just that on other forums ive used you have the power to erase threads as long as your were the one who created it.
but i see what you're saying how it might be useful to another person.
(even though probably 95% of everyone who uses this site is a better programmer than i am)
its also safe to say that "iBtrollin" is lumped into that tiny 5% xD
and another thing, my game works now, but now that I've actually had time to play around with it I've encountered a few errors.
for one thing;
basically this is my loop.
for (int x=0; x<word.length(); x++)
it runs through each letter in the word and compares it to the guess the user entered.
when the guess entered matches one of the 11 letters in the word it adds one to a counter called 'correct'.
the loop that prompts the guess and contains the comparison loop is a while loop.
while (correct<word.length())
this makes the program function, but the problem is this;
essentially you can win the game without actually playing it.
say the word is "fortunately"
if you enter the letter 'a' 11 times it will kick out of the loop and display the win statement.
im not sure exactly how to make this function properly,
ive tried comparing the word string to the string which is compiled when the user guesses correctly. but i just get longer code and a bucket full of syntax >.>
figured out that problem but at the same time i discovered a new one,
maybe its the way i am attempting to receive the input from the user but is there a way where i can accept only one letter per guess?
because as it stands i can type in a through z in a single guess and it will run through and check each letter,
this isnt that big of a problem but i wish to strive towards perfection and eliminate any method of "cheating" that can be used to 'beat' my program and obtain a win with minimal effort.
so. . . . 1 letter per guess. . . . is that possible?
Wouldn't std::cin.get() be better? You wouldn't have to worry about more than one letter per guess that way. You could use std::cin.ignore() to clear stdin between reads as well.