codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
#include <iostream> #include <string> #ifdef _UNICODE typedef wchar_t TCHAR; std::wostream& tcout = std::wcout; #else typedef char TCHAR; std::ostream& tcout = std::cout; #endif typedef std::basic_string<TCHAR> tstring; void func(const std::string& t) { std::cout << t; } int main(int argc, char *argv[]) { tstring s = "test"; func(s); return 0; }
Private
[
?
]
Run code
Submit