Thread: error msg

  1. #1
    Registered User dan20n's Avatar
    Join Date
    Jan 2005
    Posts
    24

    error msg

    Does any one know what this means?
    68:45 C:\ass.cpp [Warning] multi-character character constant

    The line is something like this:
    Code:
    database.getline(gRecs[i]->Name,20,'/n');
    Slightly modified, its an assignment cant be too careful.
    Im guessing its the '\n' in blue that might be causing it from looking on the web. though not sure, im getting unwanted output. Id like to give u more but as i said i shouldnt, anway a general run down might be enough, thanks.
    Meg: Everybody! Guess what I am?
    Stewie: Hm, the end result of a drunken back-seat grope-fest and a broken prophylactic?

  2. #2
    Registered User
    Join Date
    Sep 2004
    Posts
    719
    u need '\n'


    plus, i think get line wants a string anyway... "\n"
    i seem to have GCC 3.3.4
    But how do i start it?
    I dont have a menu for it or anything.

  3. #3
    Registered User Micko's Avatar
    Join Date
    Nov 2003
    Posts
    715
    Quote Originally Posted by dan20n
    Does any one know what this means?
    68:45 C:\ass.cpp [Warning] multi-character character constant

    The line is something like this:
    Code:
    database.getline(gRecs[i]->Name,20,'/n');
    Slightly modified, its an assignment cant be too careful.
    Im guessing its the '\n' in blue that might be causing it from looking on the web. though not sure, im getting unwanted output. Id like to give u more but as i said i shouldnt, anway a general run down might be enough, thanks.
    '\n' is a character constant (\ has special meaning - escape sequence) but '/n' consists of two characters '/' and 'n'.
    Reading this may help
    Last edited by Micko; 04-10-2005 at 02:06 AM.
    Gotta love the "please fix this for me, but I'm not going to tell you which functions we're allowed to use" posts.
    It's like teaching people to walk by first breaking their legs - muppet teachers! - Salem

  4. #4
    Registered User dan20n's Avatar
    Join Date
    Jan 2005
    Posts
    24
    ah! stupid mistake.
    Meg: Everybody! Guess what I am?
    Stewie: Hm, the end result of a drunken back-seat grope-fest and a broken prophylactic?

Popular pages Recent additions subscribe to a feed