Hello, world! (C语言代码) 摘要:解题思路:由于整形可以跟字符直接强制转换,所以将提取到的输入数据直接转换成字母保存即可。注意事项:数组的最后一定要加上‘\0’,作为字符串的结束标志。EOF为新行首位按Ctrl+z+Enter。参考代…… 题解列表 2018年02月07日 0 点赞 0 评论 1844 浏览 评分:0.0
Hello, world! (C语言代码) 摘要:解题思路:依次往整形数组中输入数字,直到在最后输入文件结束符截止。然后再利用printf语句输出相应的字符(转换)注意事项:参考代码:include<stdio.h> int main(){ …… 题解列表 2018年01月22日 2 点赞 0 评论 1514 浏览 评分:0.0
SHIYI:Hello, world! (C语言代码) 摘要:解题思路:此题主要要求使用EOF作为结束,因此要用到while(scanf("%d",&a[i])!=EOF),EOF即end of file,EOF的值常常为-1,单根据系统不同,可能不同,要想结束…… 题解列表 2018年01月04日 3 点赞 2 评论 1049 浏览 评分:0.0
Hello, world! (C语言代码) 摘要:#include <stdio.h> int main() { int n; while(scanf("%d",&n)!=EOF){ printf("%c",…… 题解列表 2017年12月26日 0 点赞 0 评论 1661 浏览 评分:0.0
Hello, world! (C语言代码) 摘要:解题思路:#include <stdio.h>#include <stdlib.h>int main(){ int n; while((scanf("%d",&n))!=EOF) {…… 题解列表 2017年12月25日 0 点赞 0 评论 1493 浏览 评分:0.0
WU-Hello, world! (C语言代码) 摘要:参考代码:#include<stdio.h> int main() { int a; while(scanf("%d",&a)!=EOF) { printf("%c",a); …… 题解列表 2017年12月14日 13 点赞 4 评论 3116 浏览 评分:7.5
Hello, world! (C语言代码) 摘要:#include <stdio.h> int main() { int a[100],i=0,m; while(scanf("%d",&a[i])!=EOF) { i++; …… 题解列表 2017年11月28日 1 点赞 0 评论 1881 浏览 评分:0.0
优质题解 Manchester- Hello, world! 摘要:解题思路:用控制格式while((scanf("%d",&a[i]))!=EOF)输入整数;循环打印出ascii码对应字符;注意事项:#include<stdio.h> int main() …… 题解列表 2017年11月24日 45 点赞 54 评论 15267 浏览 评分:7.7
Hello, world! (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ int a,i=0,b[100];; while(~scanf("%d",&a)){ b[i+…… 题解列表 2017年10月22日 0 点赞 0 评论 2122 浏览 评分:6.0
Hello, world! (C语言代码) 摘要:解题思路:就是一个输入数组的处理,看来蓝桥杯还是有简单的,注意事项:参考代码:#include<stdio.h>int main(){ int a[33]; int t=0; int i; int …… 题解列表 2017年10月18日 0 点赞 0 评论 1388 浏览 评分:0.0