Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ifstream() を使用してテキスト ファイル (UTF8) から Unicode シンボルを読み取ることができませんが、奇妙なことがあります。ifstream使用するメソッドと、関数で使用するパラメーターについて教えてください。
ifstream
そのために std 名前空間文字列と ifstream を使用できます。
ifstream in("1.txt"); string s; while(getline(in,s) { for(int i = 0; i<s.length; i++){ cout << s[i] ; } } in.close();