I am trying to write this loop in a simple convert process, but I get all sorts of crazy errors when I try using the "not equals" operators.
here is my code:
int main()
{
int i = 5;
std::string s;
do
{
cout<<" Enter a string: ";
cin>>s;
cout<<endl;
double x = converToDouble(s);
cout<<" The answer is " << x<<endl;
i--;
}while (s<>'q');
return 0;
}
The line before the "return 0"
, I try using "<>"
and "!="
, but both give me errors like "error C2059: syntax error '>' "
and if I used "!="
then I get "...could not deduce template argument for 'const _Elem *' from 'char'"
Is there a certain library I need to include to use these compare operators?
I'm Using Visual C++ 2005 Express.
Thanks!