题解 1083: Hello, world!

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

Hello, world! (C++代码)

**题目看不懂,直接使用英文翻译软件翻译**代码如下:#includeusingnamespacestd;intmain(){intx;while(cin>>x){cout

Hello, world!-题解(C++代码)

```cpp#include#includeusingnamespacestd;intmain(){stringstr_string;intn_int;while(cin>>n_int&&n_int!=EOF){str_string+=n_int;}cout

Hello, world! (C++代码)

解题思路:定义一个longlongint类型的n,用while不断输入,用EOF判断结束,输出强制转换为char类型。注意事项:1.EOF:作为文件结束标志。2.不定义为longlongint类型,可能会出现超时。参考代码:#include#includeusing

Hello, world! (C++代码)

摘要:解题思路:利用强制类型转换注意事项:c++有默认的文件结束参考代码:#include<iostream>using namespace std;int main(){     int a;     w……

Hello, world! (C++代码)

摘要:解题思路:已AC注意事项:输入和输出不在同一个缓冲区!参考代码:#include <cstdio>using namespace std;int main(){         int asc;   ……

Hello, world! (C++代码)

摘要:解题思路:输入可以先放在数组里,最后一个个读出来。注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int i=0; ……

Hello, world! (C++代码)

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstdio> using namespace std; int main() { int a; ……