![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++
文章平均质量分 77
shenjichao2008
程序爱好者
展开
-
使用C++对磁盘进行检测,获取磁盘相应的信息
extern "C" _declspec(dllexport)int getLogicDiskInfo(){ int DType; int si = 0; BOOL result; unsigned _int64 i64FreeBytesToCaller; unsigned _int64 i64TotalBytes; unsigned _int64 i64FreeBytes; float ...原创 2011-11-17 17:50:41 · 1415 阅读 · 0 评论 -
使用C++实现文件的写操作
// File.cpp : 定义控制台应用程序的入口点。// #include "stdafx.h"#include <iostream>#include <fstream>using namespace std; /** *功能:将26个数字和字母写入到磁盘文件中*@author 超仔 **/ void main(){ ofstream in;//主要用来写文件 i...原创 2011-11-18 10:04:44 · 118 阅读 · 0 评论 -
使用C++实现文件的读操作
// WriteFile.cpp : 定义控制台应用程序的入口点。// #include "stdafx.h"#include <iostream>#include <fstream>using namespace std; /** *功能:将26个数字和字母读取,该方法为将文件每行内容存储到字符串中,再输出字符串*@author 超仔 **/ void main()...2011-11-18 10:21:46 · 98 阅读 · 0 评论