首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看全站
#include<iostream>
#include<cmath>
using namespace std;
const double c=0.00265;
const double C=0.00025;
double xx(double t){
double tt=t/600;
double x=c+C*pow(0.109164*tt+1,-2.75229357798165);
return x;
}
int main()
{
......................
阅读全部 | zhabuye 贴于 2020年7月16日 01:12     hide bbsi
#include<iostream>
#include<cmath>
using namespace std;
const double c=0.00265;
const double C=0.00025;
double xx(double t){
double tt=t/600;
double x=c+C*pow(0.109164*tt+1,-2.75229357798165);
return x;
}
int main()
{
......................
阅读全部 | zhabuye 贴于 2020年7月16日 01:11     hide bbsi
'''
1、求满足条件的两位数
809*??=800*??+9*??   其中??代表的两位数, 809*??为四位数,8*??的结果为两位数,9*??的结果为3位数。求??代表的两位数,及809*??后的结果。

809乘以一个两位数    等于  800乘以这个两位数   加上 9乘以这个两位数。而且8乘以这个两位数的结果也是两位数。
输入:无
输出:
9708=809*12 = 800*12+9*12
'''
a = 809 
for i in range(10,100):
    b = i * a
......................
阅读全部 | 兽泪 贴于 2020年7月2日 17:37     hide bbsi
/*

客户:登陆,修改密码,充值,手机绑定,退出

管理员:登陆 ,添加会员 ,查看库存 ,退出

*/

#include<stdio.h>
#include<stdlib.h>
#include<string.h>

......................
阅读全部 | gougoudan 贴于 2020年7月1日 00:05     hide bbsi
typedef unsigned char Card;

// 扑克元素数据
const Card* cardTbl =
"\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d"
"\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d"
"\x21\x22\x23\x24\x25\x26\x27\x28\x29\x2a\x2b\x2c\x2d"
"\x31\x32\x33\x34\x35\x36\x37\x38\x39\x3a\x3b\x3c\x3d";

// 洗牌
void shuffle(int need, Card handTbl[], Card left[], int cnt)
{
......................
阅读全部 | gougoudan 贴于 2020年6月30日 19:08     hide bbsi
// 生命类
class Life
{
protected:
    int age;    // 年龄
    int year;   // 寿命

public:
    Life(int a, int y):age(a), year(y){}

public:
    int getAge() { return age; }
......................
阅读全部 | gougoudan 贴于 2020年6月30日 16:45     hide bbsi
#include<stdio.h>
#define Height 10

int calculate(int Long,int Width);

int main()
{
    int m_Long;
    int m_Width;
    int result;
    
    printf("长方形的高度为: %d\n",Height);
......................
阅读全部 | DJhhh 贴于 2020年6月29日 17:36     hide bbsi
//1.1
#include <stdio.h>
int main()
{
    int i,sum = 0;
    for (i = 1; i <= 100; sum += i++){}
    printf("%d", sum);
    return 0;
}
阅读全部 | gougoudan 贴于 2020年6月29日 09:59     hide bbsi
#include <easyx.h>
#include <time.h>
#include <conio.h>

// 公共基类,可以做高级抽象
struct Cell
{
    int x, y;
    void __update(int deltaX, int deltaY)
    {
        x += deltaX;
        y += deltaY;
......................
阅读全部 | gougoudan 贴于 2020年6月27日 23:39     hide bbsi
上一页 91 92 93 94 95 96 97 98 99 100 下一页