首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看全站
/**
WASD移动
P放置木板
如果在水下移动会扣血
当LVEVL达到64时游戏通关
**/
#include <bits/stdc++.h>
#include <cstdlib>
#include <time.h>
#include <cmath>
#include <iostream>
#include <fstream>
......................
阅读全部 | ghost_no_eq 贴于 2021年12月9日 19:32     hide bbsi
Option Explicit
' By音符,QQ:337855632 Time:2020-03-17 功能定制:20元起
Const C_GameWith = 1024
Const C_GameHeight = 768
Const C_GameSmallWith = 320
Const C_GameSmallHeight = 240
'黑带   16  20
Dim GamehWnd, dm, AppName, config, bgkms, KMData
config = ".\Angel.ini"
AppName = "Angel_BP"
Function CmpMutlColor(Args, Sleep)
    Dim i
......................
阅读全部 | angelfly 贴于 2021年12月6日 14:44     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绘制一个心形图案:");
......................
阅读全部 | Walter2021 贴于 2021年12月2日 18:52     hide bbsi
#include <stdio.h>
#include <stdlib.h>


int rand2(int min, int max)
{
    static unsigned long long z = 1, d = 0, s = 0, i = 256;
    static unsigned char* zz = (unsigned char*)&z, * dd = (unsigned char*)&d, *ss = (unsigned char*)&s;
    if ((++i) >= 256) { if (d) free((void*)d); d = (unsigned long long)malloc(8); i = 0; }        // 產生隨機堆位址到d
    z = z * 17 + 139;        // 線性求餘法產生0~256之間的隨機數到z
    ss[0] = zz[0] + dd[0] + dd[7] + ss[3];        // 隨機數和堆位址混合到ss
    ss[1] = zz[1] + dd[1] + dd[6] + ss[0];
......................
阅读全部 | udefine 贴于 2021年11月29日 19:43     hide bbsi
print("我爱中国\n"*72)
阅读全部 | 魏23 贴于 2021年11月27日 09:51     hide bbsi
#include <stdio.h>

int main() {
printf("我在编程中国学C语言\n\n");

// 练习一下循环的使用
int i;
for (i=1; i<=200; i++) {
printf("我爱编程中国 %d 次\n", i);
}

printf("\n\n绘制一个心形图案:");
......................
阅读全部 | 魏23 贴于 2021年11月27日 09:48     hide bbsi
#include <stdio.h>

int main() {
int i;
for (i=1; i<=20; i++) {
}

for (float y = 1.5f; y > -1.5f; y -= 0.1f) {
for (float x = -1.5f; x < 1.5f; x += 0.05f) {
float a = x * x + y * y - 1;
putchar(a * a * a - x * x * y * y * y <= 0.0f ? '*' : ' ');
}
......................
阅读全部 | kwx123456 贴于 2021年11月26日 20:57     hide bbsi
#tempConvert.py
TempStr = input("请输入带有符号的温度值")
if TempStr[-1] in ['F','f ']:
    c = (eval(Tempstr[0:-1])- 32 )/1.8
    print("转换后的温度是{:.2f}C".format(C))
elif TempStr[-1] in ['C','c']:
    F = 1.8*eval(TempStr[0:-1]) + 32 
    print("转换后的温度是{:.2f}F".format(F))
else:
    print("输入格式错误")
阅读全部 | 一念永恒 贴于 2021年11月26日 16:02     hide bbsi
/**
 * 【程序5】
 * 题目:三色球问题。若一个口袋中放有12个球,其中有3个红的。3个白的和6个黒的,问从中任取8个共有多少种不同的颜色搭配?
 */

#include<stdio.h>

int main() 
{   int i=0,j=0,count=0;
    printf("     RED BALL     WHITE BALL     BLACK BALL\n");
    printf("-------------------------------------------\n");
    
......................
阅读全部 | GST_1208 贴于 2021年11月25日 19:25     hide bbsi
/**
 * 【程序5】
 * 题目:三色球问题。若一个口袋中放有12个球,其中有3个红的。3个白的和6个黒的,问从中任取8个共有多少种不同的颜色搭配?
 */

#include<stdio.h>

int main() 
{   int i=0,j=0,count=0;
    printf("    RED BALL    WHITE BALL    BLACK BALL\n");
    printf("****************************************\n");
    
......................
阅读全部 | GST_1208 贴于 2021年11月25日 19:20     hide bbsi
上一页 64 65 66 67 68 69 70 71 72 73 下一页