--> Skip to main content

C++ Namespaces

Views

Introduction to C++ Namespaces 

 

рдоाрди рд▓ीрдЬिрдпे рдХिрд╕ी project рдкрд░ рдПрдХ рд╕े рдЕрдзिрдХ programmers рдХाрдо рдХрд░ рд░рд╣े рд╣ै, рддो рдРрд╕ा рд╣ो рд╕рдХрддा рд╣ै рдХी рдХोрдИ рджो programmers same рдиाрдо рдХी classes рдпा functions create рдХрд░ рджे। рдЗрд╕ situation рдоें рдЬрдм рд╕рднी programmers рдХे code рдХो рдПрдХ рд╕ाрде execute рдХिрдпा рдЬाрдПрдЧा рддो same рдиाрдо рдХी classes рдпा functions рд╣ोрдиे рдХी рд╡рдЬрд╣ рд╕े project рдоें error рдЖ рдЬाрдпेрдЧी। рдЗрд╕ situation рд╕े рдмрдЪрдиे рдХे рд▓िрдП C++ рдЖрдкрдХो namespace рдХा feature provide рдХрд░рддी рд╣ै।


рдПрдХ namespace identifiers, variables, functions рдФрд░ classes рдХे рд▓िрдП container рдХा рдХाрдо рдХрд░рддा рд╣ै। C++ рдХी рдЬो standard library рд╣ै рдЙрд╕े рднी namespace рдХे рд░ूрдк рдоें рд╣ी define рдХिрдпा рдЧрдпा рд╣ै। рдЗрд╕ namespace рдХा рдиाрдо std рд╣ोрддा рд╣ै, рдФрд░ рдпे рдЖрдкрдХो standard processing рдХे рд▓िрдП functions рдФрд░ classes provide рдХрд░рддा рд╣ै। рдЗрд╕рд▓िрдП рд╣ी рдЖрдк program рдоें рдЗрд╕ namespace рдХो use рдХрд░рддे рд╣ै।

C++ рдЖрдкрдХो рдЦुрдж рдХे namespaces define рдХрд░рдиे рдФрд░ рдЙрди्рд╣ें рдЕрдкрдиे program рдоें use рдХрд░рдиे рдХी capability provide рдХрд░рддी рд╣ै। Namespaces рдХी рдорджрдж рд╕े рдЖрдк code рдХो separate рдХрд░ рдкाрддे рд╣ै рдЗрд╕рд╕े code рдХो manage рдХрд░рдиे рдоें рдЖрд╕ाрдиी рд╣ो рдЬाрддी рд╣ै рдФрд░ errors рднी рдирд╣ीं рдЖрддी рд╣ै।
Comment Policy: Please write your comments that match the topic of this page's posts. Comments that contain links will not be displayed until they are approved.
Leave a Comment
Close comments