locale:: global (locale (“”));// the global zone is set to the operating system default locale
ifstream instuf (“F: \ \ Chinese path \ \ data.txt”) data sets to identify the Chinese path the
today want to look at pre-treatment data sets, and found that the C ifstream does not recognize the Chinese path, first I do not know this, then I copy the txt to f directly under the root directory, find the can, so look online to find a solution, but I see are written lengthy. I do not love reading, but I just read the file before and after adding such a 2 on the line:
locale:: global (locale (“C “));// restore global zone set
But do not know what the future there will be problems with the. After experiencing a repeat.
and no error was.
2011 年 11 月 03 日