Hello, world!-题解(C语言代码) 摘要:# Hello, world!-题解(C语言代码) ## 解题思路 1. 定义数组存放数据 2. 利用while循环输入数字并输出字符内容 3. scanf读入成功返回值为1,失败返回值为-1…… 题解列表 2020年06月26日 0 点赞 0 评论 499 浏览 评分:0.0
Hello, world! (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i=0,a[50]; while(scanf("%d",&num[i]) != EOF) …… 题解列表 2018年11月15日 0 点赞 0 评论 367 浏览 评分:0.0
Hello, world! (C语言代码) 摘要:解题思路:将数字转化为字符注意事项:不能直接用char(a)改变a的属性参考代码:#include<stdio.h>int main(){ int a; while((scanf("%d"…… 题解列表 2018年11月19日 0 点赞 0 评论 464 浏览 评分:0.0
Hello, world! (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[100],b,i=0,j; while(scanf("%d",&b)!=EOF) { a[i]=b…… 题解列表 2018年12月27日 0 点赞 0 评论 420 浏览 评分:0.0
Hello, world! (C语言代码) 摘要:题目并没有难度,记住一个小技巧,利用scanf的返回值来判断while的结束条件scanf返回值:当输入的结果与转义字符相同时,返回真,不然返回假(比如前面是%d 那么你应该输入一个整数,但是如果输入…… 题解列表 2019年02月17日 0 点赞 0 评论 798 浏览 评分:0.0
Hello, world! (C语言代码) 摘要:解题思路:把读取的数字转换为对应的ascii码即可!注意事项:参考代码:#include<stdio.h>int main(){ int i=0,num[50],leng; while(s…… 题解列表 2017年07月22日 4 点赞 3 评论 1502 浏览 评分:0.0
Hello, world!-题解(C语言代码) 摘要:解题思路: 用while(scanf("%d", &a[i]) != EOF)来输入数字,存储到数组a中 通过格式控制说明%c来将整数转化为字符常量 ```c #include int …… 题解列表 2019年07月17日 0 点赞 0 评论 593 浏览 评分:0.0
Hello, world!-题解(C语言代码)--(简短暴力仅有9行) 摘要:**思路:直接强制转换!** #include int main() { int a; while(scanf("%d",&a) != EOF) printf("%c…… 题解列表 2019年12月29日 0 点赞 0 评论 624 浏览 评分:0.0
Hello, world!-题解(C++代码) 摘要:参照优质题解 ```cpp #include const int maxn=100005; int main() { int a[maxn],i = 0; char …… 题解列表 2020年04月05日 0 点赞 0 评论 511 浏览 评分:0.0
Hello, world!-题解(C代码) 摘要: 我用的是vs编译器(需要按三次ctrl+z回车) scanf("%d%d", &a, &b); ** 如果a和b都被成功读入,那么scanf的返回值就是2;如果只有a被成功读入…… 题解列表 2020年05月13日 0 点赞 0 评论 548 浏览 评分:0.0