| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1090 人关注过本帖
标题:让word,excel,ppt的密码荡然无存
取消只看楼主 加入收藏
zhaimin889
Rank: 1
等 级:新手上路
帖 子:45
专家分:0
注 册:2006-12-28
收藏
 问题点数:0 回复次数:0 
让word,excel,ppt的密码荡然无存
#include<iostream.h>
#include<fstream.h>
#include<stdlib.h>
void main()
{
char filename[30];
int a;
ofstream out;
cout<<"input the name of file:\n";//绝对路径,包括.doc
cin>>filename;
out.open(filename,ios::out);
cout<<"input a number:\n";//随便输入
cin>>a;
out<<a;
out.close();
}
将以上代码编译并运行,输入路径和数字后,即可打开以锁文件
此法适于word,excel,ppt文件,其他文件类型说不定也可以,请自己尝试!
搜索更多相关主题的帖子: ppt excel word 密码 荡然无存 
2007-01-15 11:00
快速回复:让word,excel,ppt的密码荡然无存
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.015510 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved