直接贴上代码
1 #include<stdio.h> 2 int main() 3 { 4 printf("%s\n", __FILE__); 5 6 printf("%u\n", __LINE__); 7 printf("%u\n", __LINE__); 8 printf("%u\n", __LINE__); 9 10 return 0; 11 }
小知识(输出源文件的标题和目前执行行的行数),布布扣,bubuko.com
原文:http://www.cnblogs.com/bokezhilu/p/3580165.html