上一页 1 ··· 115 116 117 118 119 120 121 122 123 ··· 180 下一页
摘要: #include <stdio.h> //从大到小排序 void swap(int *a,int *b) { int tmp = *a; *a = *b; *b = tmp; } int main() { int a,b,c; scanf("%d,%d,%d",&a,&b,&c); if(a<b) 阅读全文
posted @ 2021-09-18 10:10 myrj 阅读(121) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <windows.h> #define N 100 void del_char(char a[],char c)//删除字符串中 阅读全文
posted @ 2021-09-17 13:05 myrj 阅读(234) 评论(0) 推荐(0) 编辑
摘要: char s[MAX] ={0}; //´æ·ÅÔ´×Ö´® char s1[MAX]={0}; //´æ·Å×Ó×Ö´® char s2[MAX]={0}; //´æ·ÅÌæ»»×Ö´® char result_a[2000] = {0};//´æ· 阅读全文
posted @ 2021-09-17 10:00 myrj 阅读(64) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> //a查找范围 b查找目标 int fun(char *a,char *b) { int n=0; while(*a) { if(*a==*b) n++; a++; } return n; } int main() { char zf[]="我喜欢我我我我C语言 阅读全文
posted @ 2021-09-17 09:22 myrj 阅读(464) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <windows.h> #define N 100 int cishu(char *a,char *b) { int n=0; 阅读全文
posted @ 2021-09-17 07:21 myrj 阅读(782) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <stdlib.h> #include <string.h> #include <glib.h> gchar getpychar(guchar uword0 , guchar uword1) { gchar pychar; int i1 = ( 阅读全文
posted @ 2021-09-16 17:44 myrj 阅读(206) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> //printf()函数在计算的时候顺序是从右往左的,但最后输出的顺序是从左往右的 int main() { int a=7,b=6; printf("%d,%d\n",a=8,a==7); printf("%d %d %d",printf("ab"),prin 阅读全文
posted @ 2021-09-15 16:24 myrj 阅读(207) 评论(0) 推荐(0) 编辑
摘要: ***************************************************************************************** STC系列单片机内部AD的应用,和AVR作比较,好理解点 ******************************* 阅读全文
posted @ 2021-09-09 18:51 myrj 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 单片机中的外部中断低电平触发和下降沿触发区别为:触发条件不同、触发次数不同、退出不同。 一、触发条件不同 1、外部中断低电平触发:外部中断低电平触发是检测到引脚为低电平就触发,从而进入中断函数中处理这个中断。 2、下降沿触发:下降沿触发是检测到信号有下降沿时的开关动作就触发,从而进入中断函数中处理这 阅读全文
posted @ 2021-09-06 14:16 myrj 阅读(3264) 评论(2) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-09-05 22:28 myrj 阅读(58) 评论(0) 推荐(0) 编辑
上一页 1 ··· 115 116 117 118 119 120 121 122 123 ··· 180 下一页