Hello, world! (C语言代码) 摘要:解题思路:将数字转化为字符注意事项:不能直接用char(a)改变a的属性参考代码:#include<stdio.h>int main(){ int a; while((scanf("%d"…… 题解列表 2018年11月19日 0 点赞 0 评论 1139 浏览 评分: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 评论 1002 浏览 评分:0.0
Hello, world! (C语言代码) 摘要:解题思路: 每个字符都有对应的assic码,直接将每个数字通过循环直接转化为字符即可注意事项: scanf("%d", &ch)!=EOF 当输入为回车时返回0参考代码:#include…… 题解列表 2018年11月08日 0 点赞 0 评论 1855 浏览 评分:0.0
Hello, world! (C语言代码) 摘要:解题思路:根据ASCII表对应的转换注意事项:转换过程中注意对应所占的空间不能超过参考代码#include<stdio.h>int main(){ int a; printf("Please in…… 题解列表 2018年10月14日 0 点赞 0 评论 1379 浏览 评分:0.0
Hello, world! (C语言代码) 摘要:解题思路:注意事项:结束ctrl+z参考代码:#include<stdio.h>int main(){ int a[100],i,j=0; while((scanf("%d",&a[j]))!=EOF…… 题解列表 2018年09月29日 0 点赞 0 评论 1308 浏览 评分:0.0
Hello, world! (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ char c; int a[100],i=0; int j;do{ scanf("%d",&a[i]); …… 题解列表 2018年06月13日 0 点赞 0 评论 989 浏览 评分:0.0
Hello, world! (C语言代码) 摘要:解题思路:注意事项:竞赛题一定要控制程序执行时间,所以不可以使用while(true)无限死循环参考代码:#include<stdio.h> int main() { int n; whi…… 题解列表 2018年05月31日 1 点赞 0 评论 1911 浏览 评分:0.0
Hello, world! (C语言代码) 摘要:解题思路:将数字转换为字符输出,依据ASCII码值注意事项:参考代码:#include<stdio.h>int main(){ int a[100]; int i = 0; int len; whil…… 题解列表 2018年04月27日 0 点赞 0 评论 1158 浏览 评分:0.0
Hello, world! (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[100],i=0; while((scanf("%d",&a[i]))!=EOF){ …… 题解列表 2018年04月05日 0 点赞 1 评论 1069 浏览 评分:0.0
Hello, world! (C语言代码) 解题思路:scanf函数返回值为-1时停止输入注意事项:数组a为char型时程序答案错误,查了一下原因应该是Ctrl+Z的ASCII码为26被成功写入数组的元素中,此时scanf函数返回值不为EOF,即此时按下Ctrl+Z输入并没有停止参考代码:#includeintmain(){i 题解列表 2018年03月30日 0 点赞 0 评论 1491 浏览 评分:0.0