标签:style color os strong 文件 io 代码 ar
#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
标签:style color os strong 文件 io 代码 ar
原文地址:http://www.cnblogs.com/hxb316/p/3876022.html