码迷,mamicode.com
首页 >  
搜索关键字:visaul stdio    ( 10042个结果
二叉排序树
数据结构c二叉排序树基本操作 2020_12_16 #include <stdio.h> #include <stdlib.h> #include <stdbool.h> //二叉排序树 typedef struct BSTNode { int data; struct BSTNode *lchil ...
分类:编程语言   时间:2020-12-21 12:03:24    阅读次数:0
字母向中间移动
#include<stdio.h>#include<string.h>#include<windows.h>#include<stdlib.h>intmain(){chararr1[]="welcometobit!!!!";chararr2[]="##################";intleft=0;//
分类:移动开发   时间:2020-12-21 11:16:26    阅读次数:0
三个数按大小顺序输出
#include<stdio.h>intmain(){inta=0;intb=0;intc=0;scanf("%d%d%d",&a,&b,&c);if(a<b){inttmp=a;a=b;b=tmp;}if(a<c){inttmp=a;a=c;c=tmp;}if(b<c){inttmp=b;b=c;c=tmp;}printf
分类:其他好文   时间:2020-12-21 11:13:40    阅读次数:0
最大公约数
#include<stdio.h>intmain(){intm=24;intn=18;intr=0;while(m%n){r=m%n;m=n;n=r;}printf("%d\n",n);return0;}
分类:其他好文   时间:2020-12-21 11:13:24    阅读次数:0
打印闰年 打印素数
//打印闰年#include<stdio.h>intmain(){intyear=0;intcount=0;for(year=1000;year<=2000;year++){if(year%4==0&&year%100!=0){printf("%d",year);count++;}elseif(year%400==0){printf("%d",year);coun
分类:其他好文   时间:2020-12-21 11:12:56    阅读次数:0
打印闰年 打印素数
//打印闰年#include<stdio.h>intmain(){intyear=0;intcount=0;for(year=1000;year<=2000;year++){if(year%4==0&&year%100!=0){printf("%d",year);count++;}elseif(year%400==0){printf("%d",year);coun
分类:其他好文   时间:2020-12-21 11:12:41    阅读次数:0
一个关于字符串的c语言程序
源程序: #include <stdio.h>#include <string.h> int main(){ char str[20]; int length; length=strlen(strcpy(str,"Hello World!")); printf("字符串长度:%d\n",length ...
分类:编程语言   时间:2020-12-19 12:52:11    阅读次数:5
二维矩阵的算法
源程序: /*//1、二维矩阵原样输出//2、转90度输出//3、每行最后增加一个元素,变成正方形矩阵输出//4、求矩阵中的最大值和最小值//5、求主对角线和副对角线之和*/#include <stdio.h>int main(){ int Numbers[4][3]={1,1,1, 2,4,8, ...
分类:编程语言   时间:2020-12-18 12:28:27    阅读次数:2
C语言while循环
文字叙述就省略: while是当条件为真时执行循环,下面是循环5次 #include<stdio.h> void main(){ int i=1; //定义一个整形,并给这个变量赋初值为1 while(i<=5){ //循环5次,并打印5个你好 printf("你好\n"); i++; } } ...
分类:编程语言   时间:2020-12-18 12:12:08    阅读次数:2
实验5
实验任务1 #include <stdio.h> const int N=3; int main() { int a[N] = {1, 2, 3}; int i; printf("通过数组名及下标直接访问数组元素:\n"); for(i=0; i<N; i++) printf("%d: %d\n", ...
分类:其他好文   时间:2020-12-16 12:27:41    阅读次数:3
10042条   上一页 1 ... 27 28 29 30 31 ... 1005 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!