CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2012
    Location
    Australia
    Posts
    15

    Difference between class and namesapce

    What is difference between an class and an namespace? You can put functions in both class and namespace?

  2. #2
    Join Date
    Jun 2009
    Location
    France
    Posts
    2,513

    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
  •  





Click Here to Expand Forum to Full Width

Featured