首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看全站
#include <stdio.h>

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

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

printf("\n\n绘制一个心形图案:");
......................
阅读全部 | 编程小白00 贴于 2021年11月18日 13:11     hide bbsi
#include<stdio.h>
int main(void)
{
    double s=0;
    for(int i=0;i!=100;++i)
    s+=(i%2==0?+1:-1)/i;
    printf("%f\n",s);
}
阅读全部 | 风满楼l 贴于 2021年11月17日 15:25     hide bbsi
#include<stdio.h>
int main(void)
{
    double s=0;
    for(int i=0;i!=100;++i)
    s+=(i%2==0?+1:-1)/i;
    printf("%f\n",s);
}
阅读全部 | 风满楼l 贴于 2021年11月17日 15:24     hide bbsi
<!DOCTYPE html>
    <html>
    <head>
    <meta charset="UTF-8" />
    <title>学生心理档案</title>
    <style>

    </style>
    <script src="jquery-1.8.0.js">
    </script>
    </head>
    <body>
......................
阅读全部 | mimijilu 贴于 2021年11月16日 12:52     hide bbsi
<!DOCTYPE html>
    <html>
    <head>
    <meta charset="UTF-8" />
    <title>体测查询</title>
    <style>

    </style>
    <script src="jquery-1.8.0.js">
    </script>
    </head>
    <body>
......................
阅读全部 | mimijilu 贴于 2021年11月16日 12:46     hide bbsi
#!/usr/bin/python3
from bottle import route,hook,template, run,request,response,get
import pymysql,json
@hook('after_request')
def enable_cors():
    response.headers['Access-Control-Allow-Origin'] = '*'
    response.headers['Access-Control-Allow-Methods'] = 'GET, POST, PUT, OPTIONS'
    response.headers['Access-Control-Allow-Headers'] = 'Authorization, Content-Type, Depth, User-Agent, X-File-Size, X-Requested-With, X-Requested-By, If-Modified-Since, X-File-Name, X-File-Type, Cache-Control, Origin'
@get('/hello')
def hello():
    db = pymysql.connect(host="172.16.8.224",user= "reader", password="123456",database= "student_information",port=1432)
    cursor = db.cursor()
......................
阅读全部 | mimijilu 贴于 2021年11月16日 12:44     hide bbsi
#include <stdio.h>
int num1[]={2,5,7,9,12,15,18,35};

int twoSum(int* nums, int numsSize);//, int target);//, int* returnSize)

int main() {

printf("我在学C语言\n\n");
    twoSum(num1,8);

return 0;
}
......................
阅读全部 | GST_1208 贴于 2021年11月15日 20:58     hide bbsi
#include <math.h>
#include <stdio.h>
int main()
{int n=0;
 double a[3],b=0,c,d,x=0,s;
 for(n=0;n<=2;n++)
scanf("%lf",&a[n]);    //输入用空格断开 
c=n;
printf("个数%f \n",c);
for(n=0;n<=c-1;n++)
b=b+a[n];
b=b/c;
......................
阅读全部 | 疯哈 贴于 2021年11月15日 09:28     hide bbsi
#include <math.h>
#include <stdio.h>
int main()
{int n=0;
 double a[3],b=0,c,d,x=0,s;
 for(n=0;n<=2;n++)
scanf("%lf",&a[n]);    //输入用空格断开 
c=n;
printf("个数%f \n",c);
for(n=0;n<=c-1;n++)
b=b+a[n];
b=b/c;
......................
阅读全部 | 疯哈 贴于 2021年11月15日 09:28     hide bbsi
#include<stdio.h>
int main()
{char c
c=getchar()
for(;(c=getchar())!='\n'
printf("%c",c);
return 0;
}
阅读全部 | 编程我最强 贴于 2021年11月15日 09:10     hide bbsi
上一页 66 67 68 69 70 71 72 73 74 75 下一页