Hello, i'm new to these forums. I started c++ a week ago but it looks fun!
Anyways, I'm making this little memmory game. Now, the point of this game is to type 10 words. After that you will have to type them again to see if you remembered them correctly. But it says you allways loose.
Here's the code:
Don't have a compiler handy to check the sizes (whether or not you CAN put a 20 char word).
I suggest you try that. If the sizes are off try switching around the 10s and 20s.
@kooth Oh right i used the strcmpi on the top but i guess i forgot to use it in the second step. Thank you all for your help. I'll try your methods asap! And i still have ALOT to learn. For example i don't know what a 2d array is. But i will now start reading some tutorials including the one on this site. And i hope i'll get better.
Well, DeusExInfernus was reccomending two-dimentional arrays. You will encounter them from time to time. If you haven't gotten your copy of "The C++ Programming Language" by Stroustrup, you should have Santa bring you one! ;)
Hmm i'm not sure if we have that book here in portugal but i'll try to find it. And if we do have it, i'm tottaly going to order it! Thank you for your advice.