Using :: in C++
问题 I am learning C++ and I can never tell when I need to use :: . I do know that I need to use std:: in front of cout and cin . Does this mean that inside of the iostream file the developers that created it made a namespace called std and put the functions cin and cout into the namespace called std ? When I created a new class that isn't in the same file as main() for some reason I must add :: . For example, if I create a class called A , why do I need to put A:: in front of a function that I