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

typedef struct vector{
 int size,count;
 int *data;
} vector;/*结构定义*/
vector *getNewVector(int n){//顺序表的初始化操作//
    vector *p=(vector*)malloc(sizeof(vector));//开辟顺序表空间//
    p->size=n;
    p->count=0;
......................
阅读全部 | geruichen 贴于 2023年9月7日 20:55     hide bbsi
#include <stdio.h>
#include <stdlib.h>


typedef struct vector{
 int size,count;
 int *data;
} vector;
vector *getNewVector(int n){
    vector *p=(vector*)malloc(sizeof(vector));
    p->size=n;
    p->count=0;
......................
阅读全部 | geruichen 贴于 2023年9月4日 15:08     hide bbsi
#include<bits/stdc++.h>
using namespace std;
int a[1000],b[1000],c[1000];
int main(){
string a1,a2;
cin>>a1>>a2;
int lena=a1.size(),lenb=a2.size();
for(int i=0;i<lena;i++){
a[i]=a1[lena-1-i]-'0';
}
for(int i=0;i<lenb;i++){
b[i]=a2[lenb-1-i]-'0';
......................
阅读全部 | dhm 贴于 2023年8月15日 16:44     hide bbsi
#pragma once
    #include<windows.h>
    #include<iostream>
    using namespace std;
    typedef struct Frame
{

        COORD position[2];         
        //  COORD 是Windows API中定义的一种结构,表示一个字符在控制台屏幕上的坐标。
        // 其定义为:
        // typedef struct _COORD {
        //         SHORT X;
......................
阅读全部 | iuyt 贴于 2023年8月15日 10:35     hide bbsi
#include<iostream>
using namespace std;
int main()
{
cout<<"春晓"<<endl;
cout<<"春眠不觉晓,"<<endl;
cout<<"处处蚊子咬."<<endl;
cout<<"夜来嗡嗡声,"<<endl;
cout<<"脓包知多少."<<endl;
return 0;
}
阅读全部 | 王奕霖 贴于 2023年8月11日 13:56     hide bbsi
a=1
while a<=9:
    b=1
    while b<=a:
        c=b*a
        print(str(b)+"*"+str(a)+"="+str(c),end="\t")
        b=b+1
    a=a+1
    print("")
阅读全部 | 王奕霖 贴于 2023年8月10日 22:51     hide bbsi
a=1
while a<=9:
    b=1
    while b<=a:
        c=b*a
        print(str(b)+"*"+str(a)+"="+str(c),end="\t")
        b=b+1
    a=a+1
    print("")
阅读全部 | 王奕霖 贴于 2023年8月10日 22:50     hide bbsi
import turtle as t
from datetime import*
def Skip(step):
    t.penup()
    t.forward(step)
    t.pendown()
def mkHand(name,length):
    t.reset()
    Skip(-length*0.1)
    t.begin_poly()
    t.forward(length*1.1)
    t.end_poly()
......................
阅读全部 | 小白在此 贴于 2023年8月7日 22:05     hide bbsi
#include <stdio.h>

int main() {
printf("祝福各位驾照快快考出\n\n");

// 练习一下循环的使用
int i;
for (i=1; i<=100; i++) {
printf("祝福各位驾照快快考出 %d 次\n", i);
}

printf("\n\n绘制一个心形图案:");
......................
阅读全部 | 明月诱人 贴于 2023年7月21日 23:10     hide bbsi
#include <stdio.h>

int main() {
printf("祝福各位驾照快快考出\n\n");

// 练习一下循环的使用
int i;
for (i=1; i<=100; i++) {
printf("祝福各位驾照快快考出 %d 次\n", i);
}

printf("\n\n绘制一个心形图案:");
......................
阅读全部 | 明月诱人 贴于 2023年7月21日 23:10     hide bbsi
上一页 3 4 5 6 7 8 9 10 11 12 下一页