VC++ 帮忙编译 编译成功邮件到[email protected]

[复制链接]
查看11 | 回复1 | 2011-8-10 09:23:52 | 显示全部楼层 |阅读模式
源码:
#include "iostream"
#include "string.h"
#include "time.h"
using namespace std;
void Hotfix()
{
        int number=1;
        int n=0;
        char str[100];
        char temp[100];
        FILE *fp=NULL;
        fp=fopen("Hotfix.txt","r");
        cout>sure;
        if (sure=='Y'|| sure=='y')
                system("shutdown -r -t 0");
        else
        {
                coutHotfix.txt");//创建文本文件

int state=system("dir /b /o-d WindowsXP*.exe Windows6.1*.msu KB*.exe >Hotfix.txt");//遍历文件夹,将补丁文件名写入Hotfix.txt
        if (state==1)
        {
                system("cls");
                cout<<"警告:在当前目录中没有检测到系统补丁文件! \n\n请将本程序拷贝到您存放补丁的文件夹中,然后重新运行本程序!\n\n";
                system("pause");
        }
        else
        {
                cout<<"检测到当前文件夹中有系统补丁文件,按任意键开始安装!";
                getchar();
                cout<<"\n";
                Hotfix();//调用函数处理
        }
}
谢谢!

回复

使用道具 举报

千问 | 2011-8-10 09:23:52 | 显示全部楼层
已发送。请查收...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行