#include
#include
#include
int width = 50;
int hight =20;
int position_x, position_y;
int bullet_x,bullet_y;
int enemy_x,enemy_y;
int score;
void updatestart() // 初始化数据
{
position_x = hight / 2;
......................
阅读全部
|
hanhanaaaaa
贴于 2020年3月10日 08:23
hide
bbsi
#include <stdio.h>
int main() {
printf("我在编程中国学C语言\n\n");
// 练习一下循环的使用
int i;
for (i=1; i<=20; i++) {
printf("我爱编程中国 %d 次\n", i);
}
printf("\n\n编程中国送我一颗小心心:");
......................
阅读全部
|
郭雨林
贴于 2020年3月7日 17:15
hide
bbsi
#include <stdio.h>
#include <stdlib.h>
typedef struct num{
int a;
struct num* next;
}Num;
typedef struct node{
int sum;
struct num* fir;
struct num* end;
}Node;
......................
阅读全部
|
gui在坚持
贴于 2020年3月5日 01:56
hide
bbsi
#include <stdio.h>
void max2( int x1, int x2 ,int x3, int *y1 ,int *y2)
{ if (x1>=x2 && x1>=x3)
{ *y1=x1;
if(x2>=x3) *y2=x2;
else *y2=x3;
}
if(x1>=x2 && x1< x3)
{ *y1=x3;
if(x1>=x2) *y2=x1;
else *y2=x2;
}
......................
阅读全部
|
Shay嘻嘻嘻
贴于 2020年2月27日 16:31
hide
bbsi
/*
Name: games.h
Copyright:
Author: Tc_xk
Date: 16-02-20 14:51
Description: for dev-c++:NOT offical headfile for game making
*/
#include <iostream>
#include <string>
#include<Windows.h>
#include<cstdlib>
#include<ctime>
......................
阅读全部
|
return_0
贴于 2020年2月27日 11:26
hide
bbsi
#include <stdio.h>
#include <iostream>
#include <math.h>
float f(float x, float y, float z) {
float a = x * x + 9.0f / 4.0f * y * y + z * z - 1;
return a * a * a - x * x * z * z * z - 9.0f / 80.0f * y * y * z * z * z;
}
float h(float x, float z) {
for (float y = 1.0f; y >= 0.0f; y -= 0.001f)
if (f(x, y, z) <= 0.0f) {
......................
阅读全部
|
zkphello
贴于 2020年2月17日 11:24
hide
bbsi
#include <stdio.h>
int main() {
printf("我在编程中国学C语言\n\n");
// 练习一下循环的使用
int i;
for (i=1; i<=20; i++) {
printf("我爱编程中国 %d 次\n", i);
}
printf("\n\n编程中国送我一颗小心心:");
......................
阅读全部
|
bianlian_liu
贴于 2020年2月11日 14:21
hide
bbsi
import turtle
import random
game = turtle.Screen()
turtle.speed(0)
turtle.bgcolor('black')
turtle.color('white')
turtle.pensize(4)
acc_ext = 0
x=10
turtle.penup()
turtle.goto(0,-x)
turtle.pendown()
......................
阅读全部
|
hefuchun
贴于 2020年2月7日 10:39
hide
bbsi