⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 搞笑改密码.cpp

📁 主要介绍了一个用c++编写的比较搞笑的程序
💻 CPP
字号:
#include<iostream.h>
#include<fstream.h>

void initpwdfile()
{
  char a[80];
  int gai;
  ofstream ofs;

  cout<<"改密码?(1.改! 0.算了):";
  cin>>gai;
  if(!gai)return;

  ofs.open("xlpwd");
  if(!ofs)
  {cout<<"CAnnot open xlpwd!"<<endl;return;}
  cout<<"香龙的密码改了吧:";
  cin>>a;
  ofs<<a;
  ofs.close();

  cout<<"改下一个?(1.改! 0.哦,不了):";
  cin>>gai;
  if(!gai)return;

  ofs.open("mzzpwd");
  if(!ofs)
  {cout<<"CAnnot open mzzpwd!"<<endl;return;}
  cout<<"马自重的密码改了吧:";
  cin>>a;
  ofs<<a;
  ofs.close();

  cout<<"还改?!(1.改! 0.唉,累了):";
  cin>>gai;
  if(!gai)return;

  ofs.open("hhlpwd");
  if(!ofs)
  {cout<<"CAnnot open hhlpwd!"<<endl;return;}
  cout<<"黄河凉的密码改了吧:";
  cin>>a;
  ofs<<a;
  ofs.close();

  cout<<"我让你改!(1.改! 0.大哥不改了):";
  cin>>gai;
  if(!gai)
    { cout<<"还知道给人留余地"<<endl;
      return;
      }

  ofs.open("wsypwd");
  if(!ofs)
  {cout<<"CAnnot open wsypwd!"<<endl;return;}
  cout<<"我服了,网上影的密码改了吧:";
  cin>>a;
  ofs<<a;
  ofs.close();
}

int main()
{
  initpwdfile();
  return 0;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -