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...
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...
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...
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...
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...
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...