if_exists的使用

来源:互联网 发布:装机必备软件 编辑:程序博客网 时间:2024/06/03 19:28


/*注意 if 前面有二个 ___if_exists:判断一个标识符存在不存,标识符:变量、函数、类*/#include<iostream>using namespace std;void run(int x){}void main(){//int num;//__if_exists(num)//注意 if 前面有二个 ___if_exists(run){cout << "is exists" << endl;}//__if_not_exists(num)__if_not_exists(run){cout << "is not exists " << endl;}cin.get();}


0 0
原创粉丝点击