Thread: use C to implement all C++ features?

  1. #1
    it was mentioned that you "can do operator overloading-like things with functions", so how would he do this?
    Code:
    ...
    cout << "Hello, my " << personal_info_part[i] << " is " << val[i];
    ...
    it'd probably end up looking like:
    Code:
    cout(cout(cout(cout("Hello, my ", personal_info_part[i]), " is ") val[i]);
    but i don't think even THAT works!
    Compilers:
    GCC on Red Hat 8.1 (Primary)
    GCC on Mac OS X 10.2.4 (Secondary)

    Others:
    MinGW on XP

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    The last post was used as a reply to a thread that died in November 2002.......if it's been dead all that time, then please leave it that way...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Please help me how to implement assembly in C
    By chottachatri in forum C Programming
    Replies: 26
    Last Post: 03-02-2008, 12:28 AM
  2. Replies: 4
    Last Post: 12-20-2007, 07:55 PM
  3. Implement "Whats This" using Win32
    By hemanth.balaji in forum Windows Programming
    Replies: 1
    Last Post: 05-29-2005, 06:03 AM
  4. use C to implement all C++ features?
    By CALVIN in forum C++ Programming
    Replies: 15
    Last Post: 11-12-2002, 09:02 PM
  5. Can't Implement Tabbing
    By Invincible in forum Windows Programming
    Replies: 10
    Last Post: 02-27-2002, 05:09 AM