I am having troubles getting my output to work with printf.
gmod.cc:cannot pass objects of non-POD type `const class
This is part of the code I am playing with
Connection con(use_exceptions);
con.connect("netjuke", "127.0.0.1", "******", "******");
Query query = con.query();
query << "SELECT location FROM netjuke_tracks Where al_id=17 AND
track_number=1";
Result res = query.store();
Row row;
Result::iterator i;
for(i=res.begin();i!=res.end();i++)
{
row = *i;
printf("%s", row[0]);
}
I change it from
for(i=res.begin();i!=res.end();i++)
{
row = *i;
cout << row[0];
}
and this worked fine, but using printf doesnt