Is there anything wrong with this code? This is a part of function for reading database data. o
is otl_stream
object for database output stream. My mentor told me that I have mistake in this code, I am newbie to C++ and can't figure out what is problem... I must use pointers, so please don't tell me to use static char array.
char* temp_char;
while (!o.eof()) {
temp_char = new char [31];
o>>temp_char;
records.push_back(temp_char);
delete[] temp_char;
}