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

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

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

printf("\n\n编程中国送我一颗小心心:");
......................
阅读全部 | 郭雨林 贴于 2020年3月7日 17:15     hide bbsi
#include <stdio.h>
#include <stdlib.h>
typedef struct num{
int a;
struct num* next;
}Num;

typedef struct node{
int sum;
struct num* fir;
struct num* end;
}Node;
......................
阅读全部 | gui在坚持 贴于 2020年3月5日 01:56     hide bbsi
#include <stdio.h>
void  max2( int x1,  int x2  ,int  x3,  int  *y1 ,int  *y2)
    {   if (x1>=x2  && x1>=x3)
                            {   *y1=x1;
                                   if(x2>=x3)     *y2=x2;
                                   else   *y2=x3;
                             }
                      if(x1>=x2 && x1< x3)
                             {   *y1=x3;
                                   if(x1>=x2)  *y2=x1;
                                   else  *y2=x2;
                              }
......................
阅读全部 | Shay嘻嘻嘻 贴于 2020年2月27日 16: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编程中国送我一颗小心心:");
......................
阅读全部 | bianlian_liu 贴于 2020年2月11日 14:21     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
#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
#include <bits/stdc++.h>

int main(){
    return 0;
}
阅读全部 | zfyybfq 贴于 2019年12月22日 16:40     hide bbsi
#include "reg51.h"

//--------------------主程序--------------------------------
void main()
{
 //单片机定时器及外部端口技术设置  
      TMOD=0x51;  //设置定时器0,方式1:16位定时器
      TH1=0; 
      TL1=0; 
      TH0=(65536-2000)/256; 
      TL0=(65536-2000)%256; 
      TR0=1; 
......................
阅读全部 | yu53 贴于 2019年12月20日 16:22     hide bbsi
上一页 48 49 50 51 52 53 54 55 56 57 下一页