随笔分类 -  c/c++

上一页 1 ··· 26 27 28 29 30
摘要:1、 #include <stdio.h> int main(void) { int i; puts("please input an integer."); printf("i = "); scanf("%d", &i); if (i % 3 == 0) puts("can be devided" 阅读全文
posted @ 2021-01-03 23:40 小鲨鱼2018 阅读(964) 评论(0) 推荐(0) 编辑
摘要:通常会在内存中找一个位置来存放cpu要处理的数据,每个存放数据的位置都有一个“地址”,通过这个地址,cpu就可以找到并使用他们。这个存放数据的位置就是变量。 阅读全文
posted @ 2020-12-31 12:26 小鲨鱼2018 阅读(122) 评论(0) 推荐(0) 编辑
摘要:1、 #include <stdio.h> int main(void) { int i; puts("please input a month."); printf("month i: "); scanf("%d",&i); if (i >= 3 && i <= 5) { printf("%d i 阅读全文
posted @ 2020-12-27 23:49 小鲨鱼2018 阅读(87) 评论(0) 推荐(0) 编辑
摘要:1、最大值 #include <stdio.h> int main(void) { int a,b,c,d,m; puts("please input four integers."); printf("a = "); scanf("%d", &a); printf("b = "); scanf(" 阅读全文
posted @ 2020-12-27 20:07 小鲨鱼2018 阅读(2419) 评论(0) 推荐(0) 编辑
摘要:1、 #include <stdio.h> int main(void) { int i,j; puts("please input two integers."); printf("i: "); scanf("%d",&i); printf("j: "); scanf("%d",&j); prin 阅读全文
posted @ 2020-12-27 19:12 小鲨鱼2018 阅读(8036) 评论(0) 推荐(0) 编辑
摘要:1、最大值 #include <stdio.h> int main(void) { int a,b,c,d,m; puts("please input four integers."); printf("a = "); scanf("%d", &a); printf("b = "); scanf(" 阅读全文
posted @ 2020-12-27 18:06 小鲨鱼2018 阅读(5289) 评论(0) 推荐(0) 编辑
摘要:1、 #include <stdio.h> int main(void) { int i,j; puts("please input two integers: "); printf("i: "); scanf("%d",&i); printf("j: "); scanf("%d",&j); if 阅读全文
posted @ 2020-12-27 17:29 小鲨鱼2018 阅读(1947) 评论(0) 推荐(0) 编辑
摘要:1、 #include <stdio.h> int main(void) { int i; puts("please input a integer: "); printf("i: ");scanf("%d",&i); if (i > 0) if(i % 2 == 0) printf("even: 阅读全文
posted @ 2020-12-27 16:43 小鲨鱼2018 阅读(1497) 评论(0) 推荐(0) 编辑
摘要:1、else悬挂 #include <stdio.h> int main(void) { int i; puts("please input a integer."); printf("i: ");scanf("%d",&i); if (i > 0) puts("++++"); if (i == 0 阅读全文
posted @ 2020-12-27 15:39 小鲨鱼2018 阅读(203) 评论(0) 推荐(0) 编辑
摘要:#include <stdio.h> int main(void) { int num; puts("please input a number:"); printf("num: ");scanf("%d",&num); printf("the last digit of num is: %d\n" 阅读全文
posted @ 2020-12-25 13:59 小鲨鱼2018 阅读(1356) 评论(0) 推荐(0) 编辑
摘要:#include <stdio.h> int main(void) { printf("hello world!\a\n"); return 0; } 阅读全文
posted @ 2020-12-24 21:42 小鲨鱼2018 阅读(272) 评论(0) 推荐(0) 编辑

上一页 1 ··· 26 27 28 29 30
点击右上角即可分享
微信分享提示