在调试中,控制台输出文件名、函数名、行号是非常有助于调试的
std::cout << "file path = %s" << __FILE__;
std::cout << "function name = %s" << __FUNCTION__;
std::cout << "line = %d" << __LINE__;
std::cout << "file path = %s" << __FILE__;
std::cout << "function name = %s" << __FUNCTION__;
std::cout << "line = %d" << __LINE__;