help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Question on Logical OR (||)


From: ArbolOne
Subject: Question on Logical OR (||)
Date: Sun, 24 Jun 2012 16:37:03 -0700 (PDT)
User-agent: G2/1.0

#define SQLITE_ROW         100  /* sqlite3_step() has another row ready */
#define SQLITE_DONE        101  /* sqlite3_step() has finished executing */


rc = sqlite3_step(stmt);
if (rc != (SQLITE_DONE) || (SQLITE_ROW)){
std::cout << "Error " << rc << std:;endl;
}

having looked at the snip above, can any one tell me why this program would 
display:
                Error 100
??

Thanks!


reply via email to

[Prev in Thread] Current Thread [Next in Thread]