Sponsored Links


+ Reply to Thread
Results 1 to 2 of 2

Thread: what is difference between Data Members and Members function.

  1. #1
    Senior Member saneha's Avatar Users Flag!
    Join Date
    Apr 2011
    Posts
    266

    Moodle what is difference between Data Members and Members function.

    Sponsored Links



  2. #2
    Super Moderator Vuhelper's Avatar Users Flag!
    Join Date
    Apr 2011
    Posts
    7,804
    Namespaces allows us to group a set of global classes, objects and/or functions under a name. If you specify using namespace std then you don't have to put std:: throughout your code. The program will know to look in the std library to find the object. Namespace std contains all the classes, objects and functions of the standard C++ library.
    The whole idea of namespaces was to define a new level of scope. Sometimes different libraries and include files have the same global variable or function names. For example, a socket library might define a global variable called max_connections to indicate max socket connections allowed. A database library may declare a global variable with the same name to indicate max connections to a database. This causes problems when a programmer wishes to use both libraries in a program. The concept of namespaces was put forward to solve this problem explicitly.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. What are Static Data Members in c++ 2011?
    By saneha in forum C++ Programing
    Replies: 1
    Last Post: 04-29-2011, 03:23 AM
  2. Replies: 1
    Last Post: 04-24-2011, 01:28 PM
  3. Intro your self members with hey friends
    By Xpert in forum Member's Introduction
    Replies: 0
    Last Post: 12-06-2010, 12:24 PM
  4. Eid mubarak to all members, 2011
    By Xpert in forum Announcements
    Replies: 0
    Last Post: 11-18-2010, 11:50 AM
  5. For newly registered members
    By Xpert in forum Announcements
    Replies: 1
    Last Post: 07-10-2010, 05:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
-: Vuhelp Disclaimer :-
None of the files shown here are hosted or transmitted by this server. The links are provided solely by this site's users. The administrator's or staff of Vuhelp.net cannot be held responsible for what its users post, or any other actions of its users. You may not use this site to distribute or download any material when you do not have the legal rights to do so. It is your own responsibility to adhere to these terms. If you have any doubts about legality of content or you have any suspicions, feel free to contact us.
Pknews |Vugurus|Online Education