C/C++ 获取代码执行的行数以及文件名
时间:2014-07-29 21:04:12
收藏:0
阅读:520
#include <iostream>
#include <string>
using namespace std;
void _tmain(int argc, TCHAR *argv[])
{
int line = __LINE__;
string filename = __FILE__;
cout<<"the line is:"<<line<<endl;
cout<<"the filename is :"<<filename<<endl;
system("pause");
}
C/C++ 获取代码执行的行数以及文件名,布布扣,bubuko.com
原文:http://www.cnblogs.com/hxb316/p/3876022.html
评论(0)