How does extern work in c++?

后端 未结 5 1922
温柔的废话
温柔的废话 2021-01-12 10:03

This is from the :

namespace std 
{
  extern istream cin;       ///< Linked to standard input
  extern ostream cout;  
...
         


        
5条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-12 10:48

    No, this is an explicit way to say cin and cout are declared without actually defining them.

提交回复
热议问题