开发者社区> 问答> 正文

求解内置宏C/C++_LIN_(gcc/g++)

#include
using namespace std;
void main()
{

cout<<_LINE_<<endl;
}
error: ‘_LINE_’ was not declared in this scope
std::cout<<_LINE_<<std::endl;

展开
收起
a123456678 2016-03-23 10:04:36 1707 0
1 条回答
写回答
取消 提交回答
  • #include<iostream>
    using namespace std;
    int main()
    {   
        cout<<__LINE__<<endl;
    } 
    2019-07-17 19:10:22
    赞同 展开评论 打赏
问答分类:
问答标签:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
使用C++11开发PHP7扩展 立即下载
GPON Class C++ SFP O;T Transce 立即下载
GPON Class C++ SFP OLT Transce 立即下载