I'm having type problems... if anyone could help that'd be great. Also, I haven't coded in c++ for 2 years.. very rusty :)
Ok, I have the following dynamic char array and code
char* term1;
term1 = "f(x)";
//i really have a loop here...
if ( term1[1] == "(" ) <------ Error here
{
//do stuff...
}
Now, the error I get says I cant compare an int to a char... it appears that term1[1] is changing from a char to a small int.
What can I do to make this comparison work?
Thanks in advance!