题解 1083: Hello, world!

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

筛选

Hello, world! (C语言代码)

摘要:解题思路:注意事项:竞赛题一定要控制程序执行时间,所以不可以使用while(true)无限死循环参考代码:#include<stdio.h> int main() { int n; whi……

Hello, world! (C语言代码)

摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ char c; int a[100],i=0; int j;do{   scanf("%d",&a[i]); ……

Hello, world! (C语言代码)

摘要:解题思路:注意事项:结束ctrl+z参考代码:#include<stdio.h>int main(){ int a[100],i,j=0; while((scanf("%d",&a[j]))!=EOF……

Hello, world! (C语言代码)

摘要:解题思路:根据ASCII表对应的转换注意事项:转换过程中注意对应所占的空间不能超过参考代码#include<stdio.h>int main(){  int a;  printf("Please in……

Hello, world! (C++代码)

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

Hello, world! (C语言代码)

摘要:解题思路:    每个字符都有对应的assic码,直接将每个数字通过循环直接转化为字符即可注意事项:    scanf("%d", &ch)!=EOF  当输入为回车时返回0参考代码:#include……

Hello, world! (C语言代码)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int i=0,a[50];    while(scanf("%d",&num[i]) != EOF)  ……

Hello, world! (C语言代码)

摘要:解题思路:将数字转化为字符注意事项:不能直接用char(a)改变a的属性参考代码:#include<stdio.h>int main(){    int a;    while((scanf("%d"……

Hello, world! (C语言代码)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[100],b,i=0,j; while(scanf("%d",&b)!=EOF) {  a[i]=b……

Hello, world! (C++代码)

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