码迷,mamicode.com
首页 >  
搜索关键字:include    ( 84546个结果
二叉排序树
数据结构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
折半查找
1 //折半查找 2 #include<iostream> 3 #include <algorithm> 4 using namespace std; 5 int zheban(int a[], int n, int k) 6 { 7 int low = 1, high = n - 1, mid; ...
分类:其他好文   时间:2020-12-21 11:27:53    阅读次数: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
find函数
1.find() 返回值为目标元素的下标,若不存在目标元素则返回-1 #include<iostream> using namespace std; int main() { string str1 = "A BC", str2 = "abc"; char c = '5'; int i; i= st ...
分类:其他好文   时间:2020-12-19 13:09:58    阅读次数:2
Android jni 中打印logcat日志
1.在android.mk文件中 (android studio jni项目中可以省略这一步) 在include $(CLEAR_VARS)下面一行添加: LOCAL_LDLIBS := -llog 2.在c文件中添加头文件 #include<android/log.h> 和自定义方法 #defin ...
分类:移动开发   时间:2020-12-19 13:02:08    阅读次数:1
一个关于字符串的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
84546条   上一页 1 ... 94 95 96 97 98 ... 8455 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!