Hi everyone,
I'm getting a warning when I try to do the (char *) cast on &buf, What is the correct cast for this?
The warning I get is : use of old-style cast
Thanks,
Ed.
Code:char buf[3][20];
inline void readInRow() {
currentData.clear();
mIn.read((char *) &buf, sizeof(buf));
for (int i=0; i < 3; ++i)
currentData.push_back(string(buf[i]));
printout(currentData);
cout << endl;
}