classes

This is a discussion on classes within the C++ Programming forums, part of the General Programming Boards category; b << a: In this line, you're only using fstrem. The << operator is actually calling a function in the ...

  1. #16
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    b << a:
    In this line, you're only using fstrem. The << operator is actually calling a function in the 'b' object, and 'a' is being passed as a parameter. So you're using an object from fstream, an operator from that object, and a string. You would not need iostream for that.

  2. #17
    Registered User
    Join Date
    Aug 2005
    Posts
    91
    Oh. In that case, only read the first part of my post, and ignore the codebox. :P

  3. #18
    Banned
    Join Date
    Jun 2005
    Posts
    594
    should of set a = to something, for fun at least

  4. #19
    Registered User
    Join Date
    Aug 2005
    Posts
    91
    Quote Originally Posted by ILoveVectors
    should of set a = to something, for fun at least
    Go back to the codebox I had before, and read the line underneath "string a;".

    Anybody else notice this is getting a bit off topic?

  5. #20
    Registered User
    Join Date
    Mar 2003
    Posts
    176
    hehe ah well all my questions have been answered for now atleast so getting off topic isn't a bad thing lol

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Can you Initialize all classes once with New?
    By peacerosetx in forum C++ Programming
    Replies: 12
    Last Post: 07-02-2008, 11:47 AM
  2. Multiple Inheritance - Size of Classes?
    By Zeusbwr in forum C++ Programming
    Replies: 10
    Last Post: 11-26-2004, 09:04 AM
  3. im extreamly new help
    By rigo305 in forum C++ Programming
    Replies: 27
    Last Post: 04-24-2004, 12:22 AM
  4. Exporting VC++ classes for use with VB
    By Helix in forum Windows Programming
    Replies: 2
    Last Post: 12-29-2003, 05:38 PM
  5. include question
    By Wanted420 in forum C++ Programming
    Replies: 8
    Last Post: 10-17-2003, 04:49 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21