Hi,
I am trying to compile my unix c++ code in windows, but am having file path trouble. My unix code is:
This does not work properly when compiled in windows. I also tried:Code:cout << "Enter output sub-folder name: "; cin >> fn; subFolder = fn; fnfull = "./" + fn + "./scores.data"; fout.open(fnfull.c_str(), ofstream::out);
With no sucess.Code:cout << "Enter output sub-folder name: "; cin >> fn; subFolder = fn; fnfull = fn + "\\scores.data"; fout.open(fnfull.c_str(), ofstream::out);
Any help would be appreciated.
cheers.



LinkBack URL
About LinkBacks


