From: <ra...@ed...> - 2007-10-28 22:04:58
|
Hello! > using std::cout; using std::wcout; using std::string; using std::wstring; > using std::wfstream; using std::ios; Havn't tested it but "using std" should be enough? > int main(int argc, char *argv[]) > { > cout << "\n1)Initial cout.\n"; > > cout << ">>"; > wcout << L"2)First wcout"; > cout << "<<\n"; > > wstring wstringTest = L"3)First wstring.\n"; > wcout << wstringTest; [...] Please don't use "\n" for line formatting in output streams - especially not under Windows/DOS. Please use std::endl instead. Good chance that this does correctly handle new line character sequences and internal buffering. -- Gruß... Tim (never worked with STLport though). |