Settings--Editor---Encoding改为Windows 936 main.cpp中#include "locale.h" winmain中增加一行: setlocale(LC_ALL, "");