自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 收藏
  • 关注

转载 C++打砖块

做的有可能不好。。。#include <iostream>#include <windows.h>#include <conio.h>#include <math.h>#define Framelen 80#define Framedep 25#define Pi 3.14double xx = 5,yy = 15;int x,y,bx = 2,drct = 20,bnum = 40,hp = 8;bool end = 0;int b

2022-04-14 07:37:43 472

原创 C++ 吃豆人源代码

1向左,2向下,3向右,5向上。A减慢自己的速度,D加快自己的速度#include <cstdio>#include <iostream>#include <ctime>#include <conio.h>#include <windows.h> //停顿:Sleep(); #include <cstdlib> //清屏:system("cls");#include <cstring.

2022-04-13 18:00:14 2121 2

原创 用C++验证哥德巴赫猜想

哥德巴赫猜想即任一个偶数都可写成两个素数之和。可以用代数证明,也可以用C++来证明。上代码:#include<iostream>using namespace std;bool Prime(int i) {//判断是否为质数的函数 int j; if (i <= 1) return 0;//如果小于等于1返回0 if (i == 2) return 1;//如果是2,返回1 for (j = 2; j < i; j++) {//循环遍

2022-04-13 13:48:37 12884 3

转载 C++ 做金字塔

#include "pch.h"#include <iostream>#include<iomanip>using namespace std;int main(){ for (int i = 0; i <= 3; i++) { cout << setw(4 -i) << '*'; for (int j = 0; j <i * 2; j++) { cout << '*'; } cout &l...

2022-04-13 13:25:33 1641 1

原创 C++ 拯救公主(自创小游戏)

制作不易,不喜勿喷。#include<stdlib.h> #include<stdio.h> #include<time.h> //suiji #include<string.h> #include<windows.h> //SLEEP函数 struct Player //玩家结构体,并初始化player { char name[

2022-04-13 13:11:08 586 1

原创 C++ 合成2048小游戏

制作不易,要个赞不过分吧。#include <stdlib.h> #include<time.h>#include <stdio.h>#include <conio.h>#include<windows.h>#define N 4 int grid[N][N]={0};int D=0;int M=2048;//显示 void showdata(){ int i,j; system("CLS"); for(i=0

2022-04-13 12:30:23 245

原创 C++ 合成2048小游戏

制作不易,要个赞不过分吧#include <stdlib.h> #include<time.h>#include <stdio.h>#include <conio.h>#include<windows.h>#define N 4 int grid[N][N]={0};int D=0;int M=2048;//显示 void showdata(){ int i,j; system("CLS"); for(i=0;

2022-04-13 12:27:43 3622 1

原创 C++ 四则运算计算器

#define _CRT_SECURE_NO_WARNINGS 1#include"stdio.h" #include"stdlib.h" #include"string.h" #define maxsize 1024typedef struct{ float data[maxsize]; int top;}Stack1;void Initstack1(Stack1 *S){ S = (Stack1*)malloc(sizeof(Stack1)); .

2022-04-13 12:22:53 814

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除