题解 1083: Hello, world!

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

筛选

Hello, world! (C++代码)

摘要:解题思路:题目为两行输入,说明是多次循环读入的,所以按照要求转acsll码就行了,代码非常简洁注意事项:参考代码:#include <iostream>#include <string>using n……

Hello, world! (C++代码)

摘要:解题思路:注意事项:样例输出有毒,让我第一时间没有反应过来。参考代码:#include <iostream>#include<stdio.h>using namespace std;int main(……

Hello, world! (C++代码)

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

Hello, world! (C++代码)

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

Hello, world! (C++代码)

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

Hello, world! (C++代码)

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

Hello, world! (C++代码)

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

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

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