21 lines
459 B
C++
21 lines
459 B
C++
// test_wfstream.cpp : Defines the entry point for the console application.
|
|
//
|
|
|
|
#include <iostream>
|
|
#include <string>
|
|
|
|
//const wchar_t wsz = Լ"աբգդեզէըթժիլ";
|
|
|
|
int main(int argc, const char * argv[])
|
|
{
|
|
std::wstring wstr;
|
|
std::wcin >> wstr;
|
|
std::wcout << "You typed: " << wstr << std::endl;
|
|
std::wstring::iterator it = wstr.begin();
|
|
for ( ; it != wstr.end(); ++it )
|
|
std::wcout << (int)*it << ", ";
|
|
std::wcout << std::endl;
|
|
return 0;
|
|
}
|
|
|