Hello, world! (C++代码) **题目看不懂,直接使用英文翻译软件翻译**代码如下:#includeusingnamespacestd;intmain(){intx;while(cin>>x){cout 题解列表 2020年02月13日 0 点赞 2 评论 1299 浏览 评分:6.7
Kanna-Hello, world! (两种方法,都比较简单) **方法一:string的使用**#include#includeusingnamespacestd;intmain(){intn;stringstr;while(cin>>n)str+=n;//string类的对象可以直接在末尾加上字母coutn)a[i++]=n;for(intj=0;j 题解列表 2020年01月21日 0 点赞 0 评论 2376 浏览 评分:8.2 Hello, world!-题解(C++代码) ```cpp#include#includeusingnamespacestd;intmain(){stringstr_string;intn_int;while(cin>>n_int&&n_int!=EOF){str_string+=n_int;}cout 题解列表 2019年12月01日 0 点赞 0 评论 4546 浏览 评分:0.0 Hello, world! (C++代码)by Zfans. ```cpp#include#includeusingnamespacestd;intmain(){vectorchr;intc;while(cin>>c)chr.push_back(c);for(autop:chr)cout 题解列表 2019年07月19日 0 点赞 0 评论 1508 浏览 评分: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 评论 1401 浏览 评分:0.0 Hello, world! (C++代码) 解题思路:定义一个longlongint类型的n,用while不断输入,用EOF判断结束,输出强制转换为char类型。注意事项:1.EOF:作为文件结束标志。2.不定义为longlongint类型,可能会出现超时。参考代码:#include#includeusing 题解列表 2019年02月24日 1 点赞 0 评论 1171 浏览 评分:0.0 Hello, world! (C++代码) 摘要:解题思路:利用强制类型转换注意事项:c++有默认的文件结束参考代码:#include<iostream>using namespace std;int main(){ int a; w…… 题解列表 2019年01月19日 0 点赞 0 评论 1136 浏览 评分:0.0 Hello, world! (C++代码) 摘要:解题思路:已AC注意事项:输入和输出不在同一个缓冲区!参考代码:#include <cstdio>using namespace std;int main(){ int asc; …… 题解列表 2018年10月29日 0 点赞 0 评论 1043 浏览 评分:0.0 Hello, world! (C++代码) 摘要:解题思路:输入可以先放在数组里,最后一个个读出来。注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int i=0; …… 题解列表 2018年07月20日 1 点赞 0 评论 1762 浏览 评分:2.0 Hello, world! (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstdio> using namespace std; int main() { int a; …… 题解列表 2018年06月04日 1 点赞 0 评论 1624 浏览 评分:2.0 « 1234 »
Hello, world!-题解(C++代码) ```cpp#include#includeusingnamespacestd;intmain(){stringstr_string;intn_int;while(cin>>n_int&&n_int!=EOF){str_string+=n_int;}cout 题解列表 2019年12月01日 0 点赞 0 评论 4546 浏览 评分:0.0
Hello, world! (C++代码)by Zfans. ```cpp#include#includeusingnamespacestd;intmain(){vectorchr;intc;while(cin>>c)chr.push_back(c);for(autop:chr)cout 题解列表 2019年07月19日 0 点赞 0 评论 1508 浏览 评分: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 评论 1401 浏览 评分:0.0
Hello, world! (C++代码) 解题思路:定义一个longlongint类型的n,用while不断输入,用EOF判断结束,输出强制转换为char类型。注意事项:1.EOF:作为文件结束标志。2.不定义为longlongint类型,可能会出现超时。参考代码:#include#includeusing 题解列表 2019年02月24日 1 点赞 0 评论 1171 浏览 评分:0.0
Hello, world! (C++代码) 摘要:解题思路:利用强制类型转换注意事项:c++有默认的文件结束参考代码:#include<iostream>using namespace std;int main(){ int a; w…… 题解列表 2019年01月19日 0 点赞 0 评论 1136 浏览 评分:0.0
Hello, world! (C++代码) 摘要:解题思路:已AC注意事项:输入和输出不在同一个缓冲区!参考代码:#include <cstdio>using namespace std;int main(){ int asc; …… 题解列表 2018年10月29日 0 点赞 0 评论 1043 浏览 评分:0.0
Hello, world! (C++代码) 摘要:解题思路:输入可以先放在数组里,最后一个个读出来。注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int i=0; …… 题解列表 2018年07月20日 1 点赞 0 评论 1762 浏览 评分:2.0
Hello, world! (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstdio> using namespace std; int main() { int a; …… 题解列表 2018年06月04日 1 点赞 0 评论 1624 浏览 评分:2.0