__PRETTY_FUNCTION__ 你可能不知道的宏
作者:互联网
#include <iostream>
using namespace std;
void fun1(int a,int b)
{
cout << __PRETTY_FUNCTION__<<endl;
}
void fun2(double a,int b)
{
cout << __PRETTY_FUNCTION__<<endl;
}
int main()
{
cout << __PRETTY_FUNCTION__<<endl;
int a = 0;
int b = 0;
double c = 0;
fun1(a,b);
fun2(c,a);
}
标签:__,FUNCTION,fun1,cout,int,void,PRETTY 来源: https://blog.csdn.net/Edidaughter/article/details/120281333