c++程序—字符型

#include<iostream>
using namespace std;

int main()
{
    //字符型
    char ch = 'a';
    cout << ch << endl;
    cout << "char字符型变量所占内存:" << sizeof(char)<<endl;

    system("pause");
    return 0;

}

 

posted @ 2020-02-24 12:14  Jackie_Wang  阅读(150)  评论(0编辑  收藏  举报