Hi
I'm rather new to C++ and am rather confused about something.
I noticed, say, in an "if else" statement or a "Switch" statement it only evaluates numerical expressions. In an If Else statement I can compare two strings by using a returned boolean result from say 'strcmp' but I can't evaluate an espresions like if(variable1 == "Test") or the like. It seems to only take numerical values.
I'm thinking that this comes down to my fundamental understanding of C++. Is it the case that in all statements such as if and switch and anything else that evaluates and expression it will only evaluate numerical expressions or something that returns a numerical value and not a string comparrison? Do I always have to use something like 'strcmp' to evaluate whether a certain string has been input using cin >> ?
I've just started programming. The closest thing to programming I have used is VBA and I beleive this may be where I'm geting my misconception about how C++ works.
Thanks very much.
Danny2000 :-/