wint_t putwchar(wchar_t wChar);
#include <cwchar>
int main()
{
using namespace std;
const wchar_t* kwpName = L"XoaX.txt";
const wchar_t* kwpCurrChar = kwpName;
while (*kwpCurrChar != L'\0') {
// Send a wide character in the string for output
putwchar(*kwpCurrChar);
++kwpCurrChar;
}
// Output a final endline
putwchar(L'\n');
// Keep the window open until "Enter" is pressed
getwchar();
return 0;
}
© 20072025 XoaX.net LLC. All rights reserved.