c++游戏源代码
@符浅276:谁有c++小游戏代码
祖宏17752092719…… #include<iostream>#include<windows.h>#include<conio.h>#include<time.h>#include<string>using namespace std;/*=============== all the structures ===============*/typedef struct Frame{COORD position[2];int flag;}Frame;/*===========...
@符浅276:求一个简单的C++小游戏源程序.有注释. -
祖宏17752092719…… #include using namespace std;#include #include int main(){ int x; cout<<"输入任意数字开始."<<en...
@符浅276:能发个C++编程的小游戏的源代码给我吗?比如俄罗斯方块贪食蛇之类的 谢谢 [email protected] -
祖宏17752092719…… 贪吃蛇#define N 200#include <graphics.h>#include <stdlib.h>#include <dos.h>#define LEFT 0x4b00#define RIGHT 0x4d00#define DOWN 0x5000#define UP 0x4800#define ESC 0x011b int i,key; int score=0;/*得分*/ int gamespeed=50000;...
@符浅276:求基于C++的贪吃蛇游戏完整代码,能运行出来的~~~ -
祖宏17752092719…… 一个参考实例,在vc++6.0中可以运行成功(可能还有问题)#include <iostream.h>#include <windows.h>#include <stdlib.h>#include <conio.h>#include <time.h> //使用当前时间做种子; enum dir{up,down,left,right}; //枚举类型enum dir;//围墙; ...
@符浅276:求一个C++数独游戏的原代码! -
祖宏17752092719…… 我这个很好#include#include#include int f(int i,int j,int s);int n[9][9];int line[9][9],column[9][9],block[9][9];char youxi[9][9];i...
@符浅276:求c++猜数字游戏代码做参考,谢绝从网上复制粘贴,只剩15分了,拜托了! -
祖宏17752092719…… #include #include int _tmain(int argc, _TCHAR* argv[]) { int fg=6; int num=0,temp=0; int a[2],b[2]; srand(time(0));//设置随即开始点 while(true) { temp=rand()%100; if(temp/10!=temp%10) { num=temp; break; } } a[0]=num/10; a[1]=num%10; ...
@符浅276:求一个C++游戏源代码 -
祖宏17752092719…… 路过的,呵呵… 整体思路是:画图函数(要想颜色丰富的话下载函数库,有888色!!如NEO;INT88h两个选一就行了),声音函数,键盘函数,时间函数,总循环控制函数! 分别是:football(int x,int y,int colour){用pu...
@符浅276:在vc6.0上可以运行的c++小游戏代码 -
祖宏17752092719…… http://web.cncode.com/SoftList.asp?CateID=11&SubCateID=126 这个可以不
@符浅276:跪求用VC++编写的简单点的小游戏程序源代码,谢谢 -
祖宏17752092719…… #include<graphics.h>#include<stdio.h>#include<math.h>#include<conio.h>#include<stdlib.h>#include<dos.h>#define PI 3.1415926#define x0 320#define y0 240 DrawClock(int x,int y,int color) { int r=150; setcolor(color); circle(x,y,r); circle(x,y,2); } ...
@符浅276:用类的c++小游戏源代码?
祖宏17752092719…… 以下是贪吃蛇源代码: #include #include #include #include #include #define N 21 void gotoxy(int x,int y)//位置函数 { COORD pos; pos.X=2*x;
祖宏17752092719…… #include<iostream>#include<windows.h>#include<conio.h>#include<time.h>#include<string>using namespace std;/*=============== all the structures ===============*/typedef struct Frame{COORD position[2];int flag;}Frame;/*===========...
@符浅276:求一个简单的C++小游戏源程序.有注释. -
祖宏17752092719…… #include using namespace std;#include #include int main(){ int x; cout<<"输入任意数字开始."<<en...
@符浅276:能发个C++编程的小游戏的源代码给我吗?比如俄罗斯方块贪食蛇之类的 谢谢 [email protected] -
祖宏17752092719…… 贪吃蛇#define N 200#include <graphics.h>#include <stdlib.h>#include <dos.h>#define LEFT 0x4b00#define RIGHT 0x4d00#define DOWN 0x5000#define UP 0x4800#define ESC 0x011b int i,key; int score=0;/*得分*/ int gamespeed=50000;...
@符浅276:求基于C++的贪吃蛇游戏完整代码,能运行出来的~~~ -
祖宏17752092719…… 一个参考实例,在vc++6.0中可以运行成功(可能还有问题)#include <iostream.h>#include <windows.h>#include <stdlib.h>#include <conio.h>#include <time.h> //使用当前时间做种子; enum dir{up,down,left,right}; //枚举类型enum dir;//围墙; ...
@符浅276:求一个C++数独游戏的原代码! -
祖宏17752092719…… 我这个很好#include#include#include int f(int i,int j,int s);int n[9][9];int line[9][9],column[9][9],block[9][9];char youxi[9][9];i...
@符浅276:求c++猜数字游戏代码做参考,谢绝从网上复制粘贴,只剩15分了,拜托了! -
祖宏17752092719…… #include #include int _tmain(int argc, _TCHAR* argv[]) { int fg=6; int num=0,temp=0; int a[2],b[2]; srand(time(0));//设置随即开始点 while(true) { temp=rand()%100; if(temp/10!=temp%10) { num=temp; break; } } a[0]=num/10; a[1]=num%10; ...
@符浅276:求一个C++游戏源代码 -
祖宏17752092719…… 路过的,呵呵… 整体思路是:画图函数(要想颜色丰富的话下载函数库,有888色!!如NEO;INT88h两个选一就行了),声音函数,键盘函数,时间函数,总循环控制函数! 分别是:football(int x,int y,int colour){用pu...
@符浅276:在vc6.0上可以运行的c++小游戏代码 -
祖宏17752092719…… http://web.cncode.com/SoftList.asp?CateID=11&SubCateID=126 这个可以不
@符浅276:跪求用VC++编写的简单点的小游戏程序源代码,谢谢 -
祖宏17752092719…… #include<graphics.h>#include<stdio.h>#include<math.h>#include<conio.h>#include<stdlib.h>#include<dos.h>#define PI 3.1415926#define x0 320#define y0 240 DrawClock(int x,int y,int color) { int r=150; setcolor(color); circle(x,y,r); circle(x,y,2); } ...
@符浅276:用类的c++小游戏源代码?
祖宏17752092719…… 以下是贪吃蛇源代码: #include #include #include #include #include #define N 21 void gotoxy(int x,int y)//位置函数 { COORD pos; pos.X=2*x;