initial check in
This commit is contained in:
20
test_wfstream/test_wfstream.cpp
Normal file
20
test_wfstream/test_wfstream.cpp
Normal file
@@ -0,0 +1,20 @@
|
||||
// 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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user