How to delete the specified line of a file in C++ on CUI condition.
摘要: 答友問 @守伊兒
本文主要講如何 刪除和替換 文件中的指定行的內(nèi)容
本文是使用標(biāo)準(zhǔn)c++而不是用MFC 中CFile實(shí)現(xiàn)
主要涉及到C++文件操作,字符串處理,調(diào)整文件指針等
閱讀全文
posted @
2012-05-19 18:08 demons 閱讀(2614) |
評論 (0) 編輯
Redirect the stream buffer of cout to a file with ios::rdbuf()
摘要: 本文主題: IO 重定向, 主要分以下三部分:
1. 在c++中如何給io類流重定向.
2. 如何用一個cout 輸出整個文件內(nèi)容.
3. 找出cout ,cin ,cerr 的真身,定義自己的輸入輸出對象
閱讀全文
posted @
2012-05-11 12:20 demons 閱讀(2987) |
評論 (0) 編輯
inline hook in user mode ---single thread safe ( test passed in window7 )
摘要: 本文主要討論現(xiàn)在網(wǎng)傳很廣的單線程函數(shù)hook 類CULHook 掛鉤代碼的致命漏洞以及設(shè)計(jì)缺陷,并給出我的解決方案.
閱讀全文
posted @
2012-05-08 20:41 demons 閱讀(1745) |
評論 (0) 編輯