Why std::cout instead of simply cout?

后端 未结 7 1905
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-30 02:17

I get these error messages for all cout and endl:

main.cc:17:5: error: ‘cout’ was not declared in this scope
main.cc:17:5: note: sugges         


        
7条回答
  •  一向
    一向 (楼主)
    2021-01-30 02:46

    If you are working in ROOT, you do not even have to write #include and using namespace std; simply start from int filename().

    This will solve the issue.

提交回复
热议问题