Hello,
I try to learn C++ and have a question regarding cin, wcin and unicode.
I wanted to write a small program which opens a file and if the file doesn't exist it should ask the user if he wants to try another filename. Can anyone tell me if using wcin, wifstream,... instead of cin, ifstream is enough to make the program unicode aware (please look at my example code)? The second question I have is about using cin and wcin. The code below doesn't work. After I check if the file could be opened the wcin funtion doesn't wait for my keyboard input, instead it will directly go to the else case.
Non working code (will compile, but doesn't work as expected):