![]() |
|
#1
|
|||
|
|||
Where is namespace std Defined?I realize one should type using namespace std underneath the C++ header files #include directives.
But where is namespace std actually defined? I've searched the C++ header files but have been unable to find namespace std defined anywhere. Am I missing something? THANKS A LOT! |
|
#2
|
||||
|
||||
|
Quote:
Hi Bobby. Both using and namespace are c++ keywords (reference). I am not an expert in C++, but I felt that this link explained the whole using namespace std thing quite well. Hope this helps. __________________
The best damn Sports Blog period. |
|
#3
|
||||
|
||||
|
Hmm...
I didn't reply to this post because I thought the question was another one. I thought what he wanted to know was where, exactly in the headers was std defined. You would expect somewhere in list.h or list (I would, actually This is actually what I would like to know. I mean, I know how to use and make my own namespaces, but where are the implicit ones defined? Best regards, Luci __________________
Please read these Guidelines before posting on the forum "A person who never made a mistake never tried anything new." Einstein |
|
#4
|
||||
|
||||
|
Quote:
I do believe you are correct Lucian. I didn't read the post right. I am not sure of the answer to where std is actually defined. If I find anything I will post back. Sorry Bobby... my bad. ![]() __________________
The best damn Sports Blog period. Last edited by dsmith : 12-Oct-2004 at 20:18.
|
|
#5
|
|||
|
|||
|
dsmith,
While Luci (thanks) is right about my ?, you provided some great info and links.. Thanks a lot to you both! |
|
#6
|
|||
|
|||
|
Well, I found out that the GNU and MS Visual Studio versions of cstdio and stdio.h are very different.
In the GNU version, I can see where namespace std is defied, but in the MSVS version, I can't find the declaration. Would have thought they would be the same, but I was obviously mistaken. It still makes me wonder where namespace std is defied in Visual C++. |
Recent GIDBlog
Writing a book by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| LNK2005 Error: Already defined in... | TekiFreek | C++ Forum | 11 | 05-Dec-2007 21:47 |
| User defined data types | Kareem1984 | C Programming Language | 1 | 06-Oct-2004 19:26 |
| Get value for variable name defined as string | mirizar | C Programming Language | 3 | 21-Jun-2004 18:36 |
| Which Header Files to Use?? | BobbyMurcerFan | C++ Forum | 8 | 16-Jun-2004 19:29 |
| ClassView not showing my classes (VC++, namespace, headers) ?!?!? | djovanov | C++ Forum | 1 | 13-Jan-2004 05:54 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The