首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看全站
/*
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
#include <REGX52.H>
sbit speaker=P2^1;
 
unsigned char timer0h,timer0l,time;
//定义每个音阶的长度的数组 《世上只有妈妈好》
code unsigned char song_mother[]=
{
6,2,3,5,2,1 ,3,2,2,5,2,2, 1,3,2,6,2,1,5,2,1, 
6,2,4,3,2,2, 5,2,1, 6,2,1, 5,2,2, 3,2,1 ,2,2,1,1,2,1,
6,1,1,5,2,1, 3,2,1 ,2,2,4, 2,2,3, 3,2,1, 5,2,2,
5,2,1,6,2,1, 3,2,2 ,2,2,2 ,1,2,4, 5,2,3, 3,2,1 ,
2,2,1,1,2,1 ,6,1,1, 1,2,1, 5,1,6, 0,0,0  
......................
阅读全部 | tianjingjian 贴于 2020年1月21日 16:55     hide bbsi
package myapplet;
 import java.applet.*;
 import java.awt.*;
 public class Myaplt extends Applet{
     public void init()
     {
         System.out.println("init");
     }
     public void start()
     {
         System.out.println("start");
     }
......................
阅读全部 | tianjingjian 贴于 2020年1月21日 15:43     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编程中国送我一颗小心心:");
......................
阅读全部 | tianjingjian 贴于 2020年1月21日 15:31     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编程中国送我一颗小心心:");
......................
阅读全部 | bczg12525 贴于 2020年1月11日 19:48     hide bbsi
public class LCS {
public int findLCS(String A,String B){
int n = A.length();
int m = B.length();
char[] a = A.toCharArray();
char[] b = B.toCharArray();
int [][] dp = new int[n][m];
for(int i = 0;i<n;i++){//第一列
if(a[i] == b[0]){
dp[i][0] = 1;
for(int j = i+1;j<n;j++){
dp[j][0] = 1;
......................
阅读全部 | sugarbank 贴于 2020年1月9日 18:26     hide bbsi
public class LCS {
public int findLCS(String A,String B){
int n = A.length();
int m = B.length();
char[] a = A.toCharArray();
char[] b = B.toCharArray();
int [][] dp = new int[n][m];
for(int i = 0;i<n;i++){//第一列
if(a[i] == b[0]){
dp[i][0] = 1;
for(int j = i+1;j<n;j++){
dp[j][0] = 1;
......................
阅读全部 | sugarbank 贴于 2020年1月9日 18:25     hide bbsi
上一页 107 108 109 110 111 112 113 114 115 116 下一页