Recent content by Colossusx10

  1. C

    C++ << operator overloading

    Yes, I understand what the errors mean. I guess I should have stated the question clearer. What I meant to ask was, can anyone tell me how to fix it?
  2. C

    C++ << operator overloading

    I am trying to overload the << operator, and use it to print out a list. For some reason, it isn't working out. Here's my class deifnition: class JGAirlines { friend ostream &operator<<(ostream &,JGAirlines &); public: JGAirlines(int,int); // Constructor...
  3. C

    C++ Deleting from linked list problem

    I wrote a function called Delete(), which is supposed to take in a name of a person, and delete it from the list. For some reason it doesn't work. When I try debugging it, I get that there is a problem here: return (compare(0, _Mysize, _Right._Myptr(), _Right.size())); First of all, I...
  4. C

    C++ Linked list insert problem

    Thanks for all the feedback. So from reading what you guys wrote, there's nothing wrong with my Add fucntion... right? The reason I ask is because I tried your Print function (YoNeX), and this time, the program doesn't give me an error, but it also doesn't print out the passenger. Wouldn't...
  5. C

    C++ Linked list insert problem

    I HAVE A NEW QUESTION! How do I use the overloaded >> operator to print the result? I have no idea how to do it! -------------------------------------------------------------------------------------------------------------------------------------- OK so I wrote this function which is...
  6. C

    Need help with C++ design

    Thanks. I took your advice and pretty much wrote everything on some paper, and it really made everything much clearer.
  7. C

    C++ operator overloading

    I need to create a function called PrintFlightManifest. This function asks the user for a flight number (1 or 2), then the function prints all the passengers on that flight (no more than 20 passenger on each flight). I must use the overloaded >> operator. This is the definition I have in my...
  8. C

    Need help with C++ design

    First of all I want to say I AM NOT ASKING FOR ANYONE TO WRITE THIS FOR ME. I will provide as much detail as possible, because this program is complicated. I have a program I need write. I have to create a program for an airline called Jet Green or JG for short (it's actually a college...
Back
Top