ios and iostream, what's the difference?
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: ios and iostream, what's the difference?

  1. #1
    Join Date
    Jul 2009
    Posts
    45

    ios and iostream, what's the difference?

    I have these three codes:
    Code:
    fstream file1;
    file1.open("text", iostream:in);
    Code:
    fstream file2;
    file2.open("text", ios:in);
    Code:
    fstream file3;
    file3.open("text", ios_base:in);
    I have seen all three. What's the difference between these three?
    Thanks.

  2. #2
    Join Date
    Aug 2007
    Posts
    858

    Re: ios and iostream, what's the difference?

    It's the same object, available in any of the classes because of inheritance.

    ios_base -> ios -> iostream -> fstream

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center