cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
help with chinese charters
help with chinese charters
May 11, 2015 at 3:56pm UTC
esteban90
(1)
i have a question, when i want to write chinese charters in c++, mi program not run this, may someone helpme? my code is:
#include <iostream>
#include "wchar.h"
using namespace std;
int main(){
wcout<<L"你叫什"<<endl;
return 0 ;
}
but i don´t know where is the problem.
please help me :D
May 11, 2015 at 4:01pm UTC
ShiroAisu
(27)
If I recal correctly, C++ code must only contain ASCII characters. If you want to output those kinds of characters, you'll have to insert them as their respective UTF codes inside the string.
Topic archived. No new replies allowed.