Hey, I am not new to c++, but still learning. As in I dont get pointers but I understand classes, functions, and the other main features of c++, so I will try not to sound like a total noob.
Allright here is my question...
Firstly, I know there are probs better ways to do this, I just want to know why this code isnt working. I want to have a y/n response, (enter a y for yes and a n for no type thing). I cant get this to work though. Any ideas as to why this isnt working?
Allright thanks.
Now that brings me to another question. If I were to use numbers instead of letters. (yes I know I know there is a switch statement and that would be pointless...) But then I could just use an "=" right. Why do I have to use a "==" for this?
Rabtherab's reading is technically more accurate.
Relational operators form clauses, not complete questions. Otherwise, "if A==1" would have to be read as "if is A equal to 1?", and "A=A==1" as "A is is A equal to 1?", rather than "if A is equal to 1" and "A is A is equal to 1".
Questions are never made in neither logic nor programming. A question implies that the answer is not known, but state is always known; at least in deterministic computers.