10 2009 档案

摘要:string mystr="100"; float price=200; stringstream(mystr) >> price; 阅读全文
posted @ 2009-10-23 15:18 Fan Zhang 阅读(177) 评论(0) 推荐(0)
摘要:ifstream in("STLExtension.h",ios::ate); if (in.is_open()) { cout << "file length is " << in.tellg() << endl; } 阅读全文
posted @ 2009-10-23 14:52 Fan Zhang 阅读(215) 评论(0) 推荐(0)
摘要:#include "StdAfx.h"#include <stdio.h>#include <Windows.h>#include <Tlhelp32.h>BOOL KillProcess(LPCTSTR lpszProcessName){ PROCESSENTRY32 pe32 = {sizeof(pe32)} ; HANDLE hProc... 阅读全文
posted @ 2009-10-21 00:22 Fan Zhang 阅读(167) 评论(0) 推荐(0)
摘要:CFindFile finder; if (finder.FindFile(_T("c:\\*.*")) ) { do { AtlTrace("%s\n",finder.GetFilePath()); } while ( finder.FindNextFile() ); } 阅读全文
posted @ 2009-10-16 16:27 Fan Zhang 阅读(366) 评论(0) 推荐(0)