下载频道> 资源分类> 编程语言> C源码> 实例260 获取当前磁盘空间信息

标题:实例260 获取当前磁盘空间信息
分享到:

所属分类: C源码 资源类型:程序源码 文件大小: 1.85 KB 上传时间: 2017-07-15 23:01:28 下载次数: 10 资源积分:1分 提 供 者: admin 实例260 获取当前磁盘空间信息
内容:
#include <dos.h>
#include <stdio.h>
 
 
void DetectHDD()
{
struct dfree diskfree;
struct fatinfo fatinfo;
puts("The information of the current disk is :\n");
getdfree(0,&diskfree);
getfat(0,&fatinfo);
puts("----------------- hard disk space ------------------");
printf(">>The num of avaible clusters is : %d\n",diskfree.df_avail);
printf(">>The num of all clusters is : %d\n",diskfree.df_total);
printf(">>The num of bytes of every sector is : %d\n",diskfree.df_bsec);
printf(">>The num of sectors of every cluster is : %d\n",diskfree.df_sclus);
puts("----------- file allocation table -------------");
printf(">>The num of sectors of every cluster is : %d\n",fatinfo.fi_sclus);
printf(">>The num of bytes of file allocation table is : %d\n",fatinfo.fi_fatid);
printf(">>The num of clusters is : %d\n",fatinfo.fi_nclus);
printf(">>The num of ytes of every sector is : %d\n",fatinfo.fi_bysec);
}
void main()
{                    
DetectHDD();
getch();

文件列表(点击上边下载按钮,如果是垃圾文件请在下面评价差评或者投诉):

实例260 获取当前磁盘空间信息
实例260 获取当前磁盘空间信息\www.gusucode.com
实例260 获取当前磁盘空间信息\文件说明.txt
实例260 获取当前磁盘空间信息\www.gusucode.com.txt
实例260 获取当前磁盘空间信息\www.gusucode.com\260.c
实例260 获取当前磁盘空间信息\【谷速代码】-免费源码.url

关键词: 磁盘 实例 空间

相关推荐

Top_arrow
回到顶部
联系方式| 版权声明| 招聘信息| 广告服务| 银行汇款| 法律顾问| 兼职技术| 付款方式| 关于我们|
网站客服网站客服 程序员兼职招聘 程序员兼职招聘
沪ICP备19040327号-3
公安备案号:沪公网安备 31011802003874号
库纳格流体控制系统(上海)有限公司 版权所有
Copyright © 1999-2014, GUSUCODE.COM, All Rights Reserved