Using std Namespace

前端 未结 16 712
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-22 04:57

There seem to be different views on using \'using\' with respect to the std namespace.

Some say use \' using namespace std\', other say don\'t but rathe

16条回答
  •  逝去的感伤
    2020-11-22 05:27

    There are several ways to fix that.

    First: use like what you did.

    Second: do namespace S = std;, reducing 2 chars.

    Third: use static.

    Fourth: don't use names that std uses.

提交回复
热议问题