Results 1 to 2 of 2

Thread: Something wasnt included?

  1. #1
    Guest
    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








  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    The author goofed up. Replace it with a "+", and see what happens.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width