8 条题解
-
2
直接数据类型转换即可
#include<iostream> using namespace std; int c; int main(){ cin>>c; cout<<(char)c<<endl;
AC记录:
- 1
信息
- ID
- 6830
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- 1
- 标签
- (无)
- 递交数
- 92
- 已通过
- 71
- 上传者
直接数据类型转换即可
#include<iostream>
using namespace std;
int c;
int main(){
cin>>c;
cout<<(char)c<<endl;
AC记录:
标准CE代码
/tmp/compiler_18zuj9ah/src: 在函数‘int main()’中:
/tmp/compiler_18zuj9ah/src:7:25: 错误:expected ‘}’ at end of input
7 | cout<<(char)c<<endl;
|
^/tmp/compiler_18zuj9ah/src:5:11:
附注:to match this ‘{’
5 | int main(){
| ^
`` #include<bits/stdc++.h> using namespace std; int main(){ int a; cin>>a; cout<<char(a); return 0; }
``
#include<bits/stdc++.h>
using namespace std;
long long q,w,e,r,t,y,u,i,o,p,d,f,g,h,j,k,l,z,x,c,v,b,n,m;
string s;double dd,ee,ff=3.14159;char cc;
long long a[100000],as[100000],asd[100000];
int main()
{
cin>>n;
cc=n;
cout<<cc;
return 0;
}
#include<bits/stdc++.h>
using namespace std;
long long q,w,e,r,t,y,u,i,o,p,d,f,g,h,j,k,l,z,x,c,v,b,n,m;
string s;double dd,ee,ff=3.14159;char cc;
long long a[100000],as[100000],asd[100000];
int main()
{
cin>>n;
cc=n;
cout<<cc;
return 0;
}