#include <iostream>
#include <string>
using namespace std;
int main(void) {
wstring w = L"Out中文";
wcout.imbue(locale("chs"));
wcout << w << endl;
}
wsprintf()包含在头文件windows.h中
sprintf()包含在头文件stdio.h中。
#include <iostream>
#include <string>
using namespace std;
int main(void) {
wstring w = L"Out中文";
wcout.imbue(locale("chs"));
wcout << w << endl;
}
wsprintf()包含在头文件windows.h中
sprintf()包含在头文件stdio.h中。