-
June 3rd, 2012, 11:53 PM
#1
Difference between class and namesapce
What is difference between an class and an namespace? You can put functions in both class and namespace?
-
June 4th, 2012, 01:14 AM
#2
Re: Difference between class and namesapce
Well for starters, you can instantiate a class... That's the whole point.
There's a lot more differences, but at this point, you might be better of learning C++ than asking random questions on a forum.
Is your question related to IO?
Read this C++ FAQ article at parashift by Marshall Cline. In particular points 1-6.
It will explain how to correctly deal with IO, how to validate input, and why you shouldn't count on "while(!in.eof())". And it always makes for excellent reading.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|