I have recently begun to use C++ and have decided that the best way for me to learn is to write a basic program. I have written the first two functions and gotten stuck.
When I try to compile I am presented with the error message:
"ISO C++ forbids comparioson between pointer and integer"
I was wondering if anyone could help me with this. I appologize if this has been posted before, since I have no clue what to search for.
The line with the error contains:
if (lang == "Eng") {
I'm assuming that the problem is with the 'lang' integer. I have only found data types with numbers and single characters and figure that is the problem here. Is there a data type that can be used for strings such as 'Eng' or do i need to assign numbers or letters to each value I want to define?