[C++] typeid()

#include<iostream>
#include<typeinfo>
using namespace std;

int main()
{
    int x;
    cout << typeid(x).name() << endl;
    system("pause");
    return 0;
}

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *