0
Hey, if i understand it right, classes are "datatypes" of objects, right? But how is the sdt::cout working? Isn't it a class?
C++ classes/objects
7 ответов
+ 3
No, namespace members are accessed using ::
Example:
<namespace>::<member>
+ 2
No problem.
+ 2
cout is an object belong to std namespace... More info here https://en.cppreference.com/w/cpp/io/cout
+ 1
Or why i access it with “::“ and not with "."?
+ 1
std:: is a namespace.
+ 1
So this isnt a class?
+ 1
Ok thank you 😉