Every one know stringstream.str()
need a string variable type to store the content of stringstream.str()
into it .
I want to store the cont
I figured it out. Using namespace std and replacing tstingstream
with stringstream
. Next step is:
stringstream strstream;
strstream.imbue(std::locale("C"));
string str = strstream.str();
const char *sql= str .c_str();
Now you can execute sql statement.
sqlite3_exec(db, sql, callback, (void*)data, &zErrMsg);
Maybe it helps to somebody.