Files
test/test_wfstream/test_wfstream.cpp
2012-12-06 21:43:03 +04:00

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;
}