Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- vector<double> results;
- while(res->next()){
- //commented out some stuff i've been trying
- //results.puch_back( boost::lexical_cast<double>(res->getString("ret") ) );
- //results.push_back( (float)res->getString("ret") );
- //results.push_back(reinterpret_cast<double>(res->getInt(4) ));
- //results.push_back(res->getString(1));
- //cout << res->getInt(1) << endl;
- //cout << res->getString("ret") << endl;
- //this works but
- double res_double = res->getDouble(4);
- //cout << res_double << endl; //this prints out and works fine!
- results.push_back(res_double); //this prints out all zeros
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement