在我的centos7.0系统中,当我用g++ test.cpp -o编译代码时,输出是"is linux system“。使用g++ test.cpp -std=c++11 -o编译测试时,输出为"is not linux system“#include <iostream>int main(){ cout</e
+ -v test.ctest.c:7:3: error: ‘cout’ was not declared in this scope";给出错误:test.c:6:3: error: ‘cout’ is not a member of ‘std’
大多数在线建议建议#include <iostream>
我能做些什么,以便现有的cout添加函数、行和时间信息以及需要在cout中打印的内容?换句话说,我可以覆盖cout来使用我的实现,它将打印字符串以及所有额外的信息。我已经有这样的东西了cout<<"This thing does works but the problemis XYZ"; <--在B.cpp中
cout&l