随笔 - 638  文章 - 0 评论 - 168 阅读 - 291万
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

07 2012 档案
C/C++中判断某一文件或目录是否存在<转>
摘要:C/C++中判断某一文件或目录是否存在1.C++很简单的一种办法:#include<iostream>#include<fstream>usingnamespacestd;#defineFILENAME"stat.dat"intmain(){fstream_file;_file.open(FILENAME,ios::in);if(!_file){cout<<FILENAME<<"没有被创建";}else{cout<<FILENAME<<"已经存在";}return 阅读全文
posted @ 2012-07-27 15:31 瓦楞球 阅读(2319) 评论(0) 推荐(1) 编辑
VC控件ListControl的使用
摘要:声明:// studentDlg.h : header file//#if !defined(AFX_STUDENTDLG_H__33826904_70BF_4B3E_A689_7CB14E89B259__INCLUDED_)#define AFX_STUDENTDLG_H__33826904_70BF_4B3E_A689_7CB14E89B259__INCLUDED_#if _MSC_VER > 1000#pragma once#endif // _MSC_VER > 1000struct REC{ int no; CString name; int num1; in... 阅读全文
posted @ 2012-07-18 10:45 瓦楞球 阅读(2980) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示