贪吃蛇游戏

#define N 200#include #include #include #define LEFT 0x4b00#define RIGHT 0x4d00#define DOWN 0x5000#define UP 0x4800#define ESC 0x011bint i,key;int sc...

2009-01-15 16:46:00

阅读数:776

评论数:0

链表

#include "stdio.h" #include "stdlib.h" struct Student {int n;  struct Student *next; }; int main() {struct Student *head;  void c...

2009-01-15 16:43:00

阅读数:640

评论数:0

解方程

 #include#includefloat x1,x2;void sit1(float a,float b){  x1=x2=-b/(2.*a);}void sit2(float a,float b,float disc){  x1=(-b+sqrt(disc))/(2.*a);  x2=(-b...

2009-01-15 16:39:00

阅读数:573

评论数:0

魔方

#define N 19#includevoid main(){  int a[N][N]={0},i,j,n,x,y;  scanf("%d",&n);  x=0,y=(n-1)/2;  a[x][y]=1;  for(i=1;i    {      if(x!=0&...

2009-01-15 16:35:00

阅读数:723

评论数:0

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