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 评论 638 浏览 评分:0.0
Hello, world! (C语言代码) 摘要:解题思路:根据ASCII表对应的转换注意事项:转换过程中注意对应所占的空间不能超过参考代码#include<stdio.h>int main(){ int a; printf("Please in…… 题解列表 2018年10月14日 0 点赞 0 评论 691 浏览 评分:0.0
Hello, world! (C++代码) 摘要:解题思路:已AC注意事项:输入和输出不在同一个缓冲区!参考代码:#include <cstdio>using namespace std;int main(){ int asc; …… 题解列表 2018年10月29日 0 点赞 0 评论 502 浏览 评分:0.0
Hello, world! (C语言代码) 摘要:解题思路: 每个字符都有对应的assic码,直接将每个数字通过循环直接转化为字符即可注意事项: scanf("%d", &ch)!=EOF 当输入为回车时返回0参考代码:#include…… 题解列表 2018年11月08日 0 点赞 0 评论 562 浏览 评分: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 评论 421 浏览 评分:0.0
Hello, world! (C语言代码) 摘要:解题思路:将数字转化为字符注意事项:不能直接用char(a)改变a的属性参考代码:#include<stdio.h>int main(){ int a; while((scanf("%d"…… 题解列表 2018年11月19日 0 点赞 0 评论 516 浏览 评分: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 评论 512 浏览 评分:0.0
Hello, world! (C++代码) 摘要:解题思路:利用强制类型转换注意事项:c++有默认的文件结束参考代码:#include<iostream>using namespace std;int main(){ int a; w…… 题解列表 2019年01月19日 0 点赞 0 评论 532 浏览 评分:0.0
Hello, world! (C语言代码) 摘要:题目并没有难度,记住一个小技巧,利用scanf的返回值来判断while的结束条件scanf返回值:当输入的结果与转义字符相同时,返回真,不然返回假(比如前面是%d 那么你应该输入一个整数,但是如果输入…… 题解列表 2019年02月17日 0 点赞 0 评论 964 浏览 评分:0.0
Hello, world! (C++代码) 摘要:解题思路:定义一个long long int类型的n,用while不断输入,用EOF判断结束,输出强制转换为char类型。注意事项:1.EOF:作为文件结束标志。2.不定义为long long int…… 题解列表 2019年02月24日 1 点赞 0 评论 585 浏览 评分:0.0