Sep 20th, 2000, 12:57 AM
Am studying C++ right now..and here's the code i am having problems with:
#include <iostream.h>
int main()
{
int a = 1, b = 1, c;
if (c = (añb))
cout << "The value of c is " << c;
return 0;
}
and obviously...i get a error..here it is:
: error C2018: unknown character '0xf1' <-- i am guessing that is unicode or ascii or ansi for the character map letter "ñ"
But in the chapter that i was reading about "expressions and statements" it never explains the "ñ" at all...only the != > < == ? ..stuff like that.
after the code in the book..it says "what kind of output did you get? and why?
Well i am guessing it's a test on my part to see if i was actaully paying attention to the chapter in the first place,
but i dont know for sure.
The book i am studying is "Teach yourself C++ in 21 days"
if that helps any.
So is the "ñ" actually a c++ expression?? or just author goof up?.
Thanks
#include <iostream.h>
int main()
{
int a = 1, b = 1, c;
if (c = (añb))
cout << "The value of c is " << c;
return 0;
}
and obviously...i get a error..here it is:
: error C2018: unknown character '0xf1' <-- i am guessing that is unicode or ascii or ansi for the character map letter "ñ"
But in the chapter that i was reading about "expressions and statements" it never explains the "ñ" at all...only the != > < == ? ..stuff like that.
after the code in the book..it says "what kind of output did you get? and why?
Well i am guessing it's a test on my part to see if i was actaully paying attention to the chapter in the first place,
but i dont know for sure.
The book i am studying is "Teach yourself C++ in 21 days"
if that helps any.
So is the "ñ" actually a c++ expression?? or just author goof up?.
Thanks