why do i need to include to use them?

后端 未结 4 1919
迷失自我
迷失自我 2021-01-12 20:12

I am new to C++ and trying to figure out how to use vector.

More specifically, I want to know when I need to use #include. I

4条回答
  •  悲哀的现实
    2021-01-12 20:34

    You may see code that does not #include directly. But if you inspect the preprocessed code I'm certain you'll find that that code did include the header - but indirectly through some other header.

    This is fragile and you shouldn't do it. But that doesn't mean it does not work.

提交回复
热议问题