1.c++:如何打印出当前源文件的文件名和当前行号!
#include <iostream>
using std::cout;
using std::endl;
int main()
{
<wbr>cout << __FILE__ << endl;<br> <wbr>cout << __LINE__ << endl;</wbr></wbr>
<wbr></wbr>
<wbr></wbr>
#ifdef __cplusplus //判断是不是用C++语言写的程序
cout<<"c++";
#else
cout<<"c";
#endif
<wbr>return 0;<br>}</wbr>
2.在C++ 程序中调用被C 编译器编译后的函数,为什么要加extern “C”?