Jump to content


Zwiebel

Member Since 15 May 2005
Offline Last Active Jul 06 2009 07:08 PM

Topics I've Started

Data Types

15 May 2005 - 10:19 PM

Well this will be my first post on this forum. I've been looking around many sites for a few hours now and have found no help.

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?