> ANSI/UNICODE をコンパイルオプションに全面的にお任せするようなコードも。 ないす。 > #ifdef _UNICODE > #define tcout wcout > #else > #define tcout cout > #endif #defineが気に入らんヒトには: namespace std { basic_ostream<_TCHAR>& tcout = #ifdef _UNICODE wcout; #else cout; #endif } とかね。
- Child Tree -