C++ String and C Strings

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 พ.ย. 2024

ความคิดเห็น • 5

  • @reignz7774
    @reignz7774 5 หลายเดือนก่อน +4

    I love you Kenny

  • @Overlord_4900
    @Overlord_4900 2 หลายเดือนก่อน

    Hello sorry to ask but my must we use the std qualifiers

    • @KennyYipCoding
      @KennyYipCoding  2 หลายเดือนก่อน +2

      For beginners new to c++, it is okay to do “using namespace std” since the focus is learning the concepts, and having to type std:: every time is tedious. However when you work on much bigger projects with more code, there’s a chance of naming conflicts. Two functions from different libraries and modules can have the same name, so you would use the qualifiers to distinguish where the function is coming from. In my later videos I go over some examples where the naming conflicts can occur. Once I start my next series which is object oriented programming in c++, we will stop using namespace std.