首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看全站
hello, world..
dwdwdwd
阅读全部 | adminkkp 贴于 2023年6月9日 17:37     hide bbsi
#include <stdio.h>
int main() {

}
阅读全部 | adminkkp 贴于 2023年6月9日 17:31     hide bbsi
#include<iostream>
#include<ctime> //srand(time(0));所需头文件 
#include<cstdlib> //rand()%5+1;所需头文件 cmath
using namespace std;
int main()
{
int t,d,f; //定义整数变量 
srand(time(0));
t=rand()%5+1;
cout<<"请输入一个五以内的数。"<<endl; //提示玩家 
cin>>d;
if(d==t){
......................
阅读全部 | ww2663217271 贴于 2023年5月28日 08: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绘制一个心形图案:");
......................
阅读全部 | 雪岩归来 贴于 2023年5月19日 23:25     hide bbsi
#include<stdio.h>
 #include<math.h>
 #include<windows.h>
 #include<time.h>
 #define U 0.1
 #define V 0.053
 void SetColor(unsigned short ForeColor,unsigned short BackGroundColor)
 {
     HANDLE hCon=GetStdHandle(STD_OUTPUT_HANDLE);
     SetConsoleTextAttribute(hCon,(ForeColor%16)|(BackGroundColor%16*16));
 }
 int main()
......................
阅读全部 | ZHURONG2464 贴于 2023年5月10日 15:48     hide bbsi
using System;
using System.Net;
using System.Net.Sockets;
using System.Text;
namespace UdpClientServer
{
    class class1
    {
        static void Main()
        {
            StarListener();
            Console.ReadLine();
......................
阅读全部 | weiwei2023 贴于 2023年4月12日 13:04     hide bbsi
import random
 
# 生成一个随机数
num = random.randint(1, 100)
guesses = 0
 
# 询问用户猜数字
print("我已经想好了一个数字,请猜一猜是多少?(1~100)")
 
# 循环直到用户猜中为止
while True:
    # 读取用户输入的数字
......................
阅读全部 | asdas1111 贴于 2023年4月6日 19:34     hide bbsi
def is_prime(n):
    if n < 2:
        return False
    for i in range(2, int(n**0.5)+1):
        if n % i == 0:
            return False
    return True
阅读全部 | asdas1111 贴于 2023年4月6日 19:32     hide bbsi
<svg onload=console.log(233)>
阅读全部 | 猪头226 贴于 2023年4月5日 22:29     hide bbsi
Pi=3.14;
r=float(input('20'));
s2=Pi*r*r;
r=r+20;
s1=Pi*r*r;
s=s1-s2;
print('20',s):
阅读全部 | 人中有剑 贴于 2023年3月30日 13:05     hide bbsi
上一页 6 7 8 9 10 11 12 13 14 15 下一页