GLProgramming.com

home :: about :: development guides :: irc :: forums :: search :: paste :: links :: contribute :: code dump

-> Click here to learn how to get live help <-


New Paste :: Recent Pastes:: No Line Numbers


simple string error by shini
1
 

string chara::sStatus(char delim)
{
    string retStrin;
    if(myStatus & ST_LETHARGIC)
        retStrin += "Lethargic";
    if(myStatus & ST_PARALYZED)
        retStrin += (delim + "Paralyzed");
     
    return retStrin;

}


/* the problem is my output for a cout << chara.sStatus().c_str() is lookingl ike this:

Lethargicle facet

(assuming that only ST_LETHARGIC is set)

side note: ST_LETHARGIC = 0x01; ST_PARALYZED = 0x02; and myStatus is a BYTE.

*/