C++小游戏 归档 - 第2页 共2页 - Ericnth的小站

Hello, 欢迎登录 or 注册!

自创贪吃蛇: #include <iostream> #include <windows.h> #include <conio.h> #include <time.h> #include <stdlib.h> using namespace std; const int N = 20; void Get_xy(int x,int y) { ...

发布 1 条评论 Zhang, Xuheng

素数雨~~~ #include<bits/stdc++.h> using namespace std; int main() { unsigned long long n,m,i; cin>>n; for(m=2;m<=n;m++) { i=2; while (m%i!=0 && i<=...

发布 6 条评论 Zhang, Xuheng

自创猜数游戏: #include <bits/stdc++.h> int main() { int sysdata;//系统生成的数据 int n; //所猜的数据 int sum = 0;//记录猜的次数 srand((unsigned)time(NULL)); //随机数发生器初始化函数,以时间为种子 sysdata = ...

发布 9 条评论 Zhang, Xuheng