List:MySQL++« Previous MessageNext Message »
From:timothy johnson Date:April 6 2005 7:19am
Subject:Mysql++ && printf
View as plain text  
I am having troubles getting my output to work with printf. 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", "", "******", "******");
    Query query = con.query();
    query << "SELECT location FROM netjuke_tracks Where al_id=17 AND
    Result res =;
    Row row;
    Result::iterator i;
        row = *i;
        printf("%s", row[0]);

I change it from

        row = *i;
        cout << row[0];

and this worked fine, but using printf doesnt
Mysql++ && printftimothy johnson6 Apr
  • Re: Mysql++ && printfChris Frey6 Apr
    • Re: Mysql++ && printftimothy johnson11 Apr
      • Re: Mysql++ && printfChris Frey11 Apr
        • Re: Mysql++ && printfWarren Young12 Apr