Echo a stream variable to the screen.

Here's some code below. I want to spit out 'query' to the screen so I can check it. I don't have a fancy debugger installed yet like I am used to using on Windows7. Nor am I familiar with Linux programming very well yet. That's why I ask so many questions:

int outputToImport(const char* tbl_name, const char* output, mysqlpp::Connection* pconn) {
std::ostringstream query;
query << "TRUNCATE TABLE " << tbl_name;
printf(query);<----- ????????????????????????
}

Thank you kindly.
This should do the trick:

std::clog << query.str() << std::endl;
Topic archived. No new replies allowed.