Hello, world! (C语言代码) 摘要:题目并没有难度,记住一个小技巧,利用scanf的返回值来判断while的结束条件scanf返回值:当输入的结果与转义字符相同时,返回真,不然返回假(比如前面是%d 那么你应该输入一个整数,但是如果输入…… 题解列表 2019年02月17日 0 点赞 0 评论 799 浏览 评分:0.0
Hello, world! (C++代码) 摘要:解题思路:定义一个long long int类型的n,用while不断输入,用EOF判断结束,输出强制转换为char类型。注意事项:1.EOF:作为文件结束标志。2.不定义为long long int…… 题解列表 2019年02月24日 1 点赞 0 评论 528 浏览 评分:0.0
Hello, world! (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int arr[100]; int n=0; while(scanf("%d",&arr[n]…… 题解列表 2019年04月07日 0 点赞 0 评论 405 浏览 评分:0.0
Hello, world!-题解(C语言代码) 摘要:解题思路: 用while(scanf("%d", &a[i]) != EOF)来输入数字,存储到数组a中 通过格式控制说明%c来将整数转化为字符常量 ```c #include int …… 题解列表 2019年07月17日 0 点赞 0 评论 594 浏览 评分:0.0
Hello, world! (C++代码)by Zfans. 摘要:```cpp #include using namespace std; int main() { int asc[100], i = 0; while (cin >> a…… 题解列表 2019年07月19日 0 点赞 0 评论 885 浏览 评分:0.0
Hello, world! (C++代码)by Zfans. 摘要:```cpp #include #include using namespace std; int main() { vector chr; int c; w…… 题解列表 2019年07月19日 0 点赞 0 评论 776 浏览 评分:0.0
Hello, world!-题解(C++代码) 摘要:```cpp #include #include using namespace std; int main() { string str_string; int n_in…… 题解列表 2019年12月01日 0 点赞 0 评论 3750 浏览 评分:0.0
Hello, world!-题解(C语言代码)--(简短暴力仅有9行) 摘要:**思路:直接强制转换!** #include int main() { int a; while(scanf("%d",&a) != EOF) printf("%c…… 题解列表 2019年12月29日 0 点赞 0 评论 626 浏览 评分:0.0
Hello, world!-题解(C++代码) 摘要:# MarkDown编辑器基本使用说明 **如果这是您第一次使用MarkDown编辑器,建议先阅读这篇文章了解一下Markdown的基本使用方法。** ## 实时预览、全屏显示 ![…… 题解列表 2020年03月14日 0 点赞 0 评论 448 浏览 评分:0.0
Hello, world!-题解(C++代码) 摘要:```cpp #include using namespace std; int main(){ int n; string s; while(cin>>n&&n…… 题解列表 2020年03月24日 0 点赞 0 评论 1119 浏览 评分:0.0