1.__func__ 预定义表示符
返回所在函数的名字
#include<string>
#include<iostream>
using namespace std;
const char* hello(){return __func__}
int main()
{
cout<<hello()<<endl;
}#include<string返回所在函数的名字
#include<string>
#include<iostream>
using namespace std;
const char* hello(){return __func__}
int main()
{
cout<<hello()<<endl;
}#include<string