65.9K
CodeProject 正在变化。 阅读更多。
Home

C++ 标准库的一些有用补充

starIconstarIconstarIconstarIcon
emptyStarIcon
starIcon

4.58/5 (5投票s)

2000 年 4 月 12 日

viewsIcon

90109

downloadIcon

609

定义了一些与 TCHAR 兼容的 STL 元素,并提供了一个 std::ostream,用于将输出发送到调试器窗口。

  • 下载源文件 - 3 Kb
  • 这段代码对于 STL 用户来说非常简单但实用。它定义了一些与 TCHAR 兼容的 STL 元素。

    _tstring	- wstring or string
    _tostream	- wostream or ostream
    _tistream	- wistream or istream
    
    _tcout	- wcout or cout
    _tcin	- wcin or cin
    _tcerr	- wcerr or cerr
    _tclog	- wclog or clog
    
    它提供了一个 std::ostream,用于将对象转储到调试器窗口,一些字符串函数,并添加了对 __int64 类型的支持。

    没有什么特别花哨的东西,但你可能需要它 :-)

    © . All rights reserved.