Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
99397 罗睿妍 03字符转ASCLL码 C++ Compile Error 0 MS 0 KB 264 2024-11-27 19:43:54

Tests(0/0):


Code:

#include <iostream> using namespace std; int main() { cher ch; int n; cout<<"请输入一个字符:"<<endl; cin>>ch; n=ch; cout<<"您输入的字符是:"<<ch<<endl; cout<<"它的ASCLL值是:"<<n<<endl; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:5:5: error: 'cher' was not declared in this scope
     cher ch;
     ^
Main.cc:8:10: error: 'ch' was not declared in this scope
     cin>>ch;
          ^