this code.. gets the data from the column labeled "x1" in the TABLE "TrainingSet".. then that double is then placed in res[0]["x1"].. then i transfer the data from res[0]["x1"] to "a" .. this code has no problem.. the data was successfully transfered to "a".
The PROBLEM is when the queried data is not a double.. if the data placed in the res[0]["x1"] is a string i can not transfer is to C++ data.. i tried changing the data type of "a" from char[30], char. If i do this there will be an error.
"cannot convert from 'const mysqlpp::String' to 'char'"
please help.. i cannot transfer data in other variables if the queried data is a string.