问题 1083: Hello, world!
时间限制: 1Sec 内存限制: 64MB 提交: 7922 解决: 3778
题目描述
This is the first problem for test. Since all we know the ASCII code, your job is simple: Input numbers and output corresponding messages.
输入
The input will contain a list of positive integers separated by whitespaces(spaces, newlines, TABs). Please process to the end of file (EOF). The integers will be no less than 32.
输出
Output the corresponding message. Note there is NOT a newline character in the end of output.
样例输入
72 101 108 108 111 44
32 119 111 114 108 100 33
样例输出
Hello, world!
提示
无
不难,但是英语没学好就不懂意思阿
代码
#include<iostream>
#include<cstring>
#include<cstdlib>
#include<cstdio>
using namespace std;
int main()
{
int a;
while(scanf("%d",&a)!=EOF)
{
printf("%c",a);
}
return 0;
}
总结
1,好好学英语
2,gets()在#include<stdio.h>头文件中,
3,c++输入字符串 int a[12]; cin>>*a;