作业帮 > 综合 > 作业

超简单的C++小题DescriptionThis is the first problem for test.Since

来源:学生作业帮 编辑:搜搜考试网作业帮 分类:综合作业 时间:2024/06/05 16:09:42
超简单的C++小题
Description
This is the first problem for test.Since all we know the ASCII code,your job is simple:Input numbers and output corresponding messages.
Input
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
Output the corresponding message.Note there is NOT a newline character in the end of output.
超简单的C++小题DescriptionThis is the first problem for test.Since
#include
int main()
{
\x05char s[1001] ;
\x05int x ,i ;
\x05i = 0 ;
\x05while( scanf("%d",&x ) )
\x05{
\x05\x05s[i++] = x ;
\x05}
\x05s[i] = '\0' ;
\x05printf("%s",s ) ;
\x05return 0 ;
}