?? diskfill.cpp
字號(hào):
// DiskFill.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "string.h"
#include <stdlib.h>
#include "windows.h"
int main(int argc, char* argv[])
{
char *p;
long len=1024*1024*50;
char szPath[256];
GetCurrentDirectory(256,szPath);
strcat(szPath,"\\diskfile");
p=new char[len];
memset(p,0,len);
FILE* fp;
int i=0;
int ll;
bool end=false;
printf("\nwrite to %s\n",szPath);
fp=fopen(szPath,"w");
while(!end)
{
ll = fwrite(p,1,len,fp);
if(ll<len)
{
end = true;
break;
}
printf(".");
}
fclose(fp);
return 0;
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -