
【参考程序】
- #include<iostream>
- using namespace std;
- int main (
- char chl='2',ch2='H';
- cout<<"char类型数据存储空间大小为:"<sizeof(chl)<<endl;
- ifch1>='o'&&ch1<-'9)
- cout<<int(chl)<<endl;
- ch2=ch2+5;
- cout<<ch2<<'\n';
- cout<<int(ch2)<<endl;
- return 0;
【运行结果】

- #include<iostream>
- using namespace std;
- int main (
- char chl='2',ch2='H';
- cout<<"char类型数据存储空间大小为:"<sizeof(chl)<<endl;
- ifch1>='o'&&ch1<-'9)
- cout<<int(chl)<<endl;
- ch2=ch2+5;
- cout<<ch2<<'\n';
- cout<<int(ch2)<<endl;
- return 0;
Scratch3.0 全国青少年软件编程等级考试 Python Scratch图形化一级 Scratch图形化四级 Scratch图形化三级 Scratch图形化二级 电子学会