Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as C++ by dont ( 17 years ago )
dont@dont ~  $ cat test.cpp
#include <iostream>

int main()
{
  std::cout << "Hello char" << std::endl;
  std::wcout <<  L"Hello WCHAR" << std::endl ;

  return 0;
}
dont@dont ~  $ g++ -o res test.cpp
dont@dont ~  $ ./res
Hello char
Hello WCHAR
dont@dont ~  $ cat test.cpp
#include <iostream>

int main()
{
  std::wcout <<  L"Hello WCHAR" << std::endl ;
  std::cout << "Hello char" << std::endl;

  return 0;
}
dont@dont ~  $ g++ -o res test.cpp
dont@dont ~  $ ./res
Hello WCHAR
dont@dont ~  $

 

Revise this Paste

Parent: 7090
Your Name: Code Language: