fork(3) download
  1. #include <iostream>
  2. #include <locale>
  3. #include <string>
  4.  
  5. using namespace std;
  6.  
  7. int main() {
  8. locale::global(locale("C.UTF-8"));
  9. wstring s;
  10. wcin >> s;
  11. cout << s.length() << " " << (s == L"áéú");
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0s 5164KB
stdin
áéú
stdout
3 1