need help with problem using everloading operator

I am new to C++, and i am really lost in this chapter of fiends and overloading, have no idea how to program this, can anyone provide make the code for this so i can see how it is done so i can do it for the rest of the exercises???

Complete the following tasks:
a. Design a class to hold a JobBid. Each JobBid contains a bid number and a quoted price. Each JobBid also contains overloaded extraction and insertion operators.
b. Include an overloaded operator<() function. A JobBid is considered lower than another JobBid when the quoted price is lower.
c. Write a main() function that declares an array of four JobBid objects. Find and display the lowest JobBid. Save the file as JobBid. cpp.
An operator is just a fancy looking name for a function. That's it, there is no voodoo or something behind it.

For example,
1
2
std::string str1;
std::string str2;


 
str1 + str2


really is just syntactic sugar for

 
str1.operator+(str2)


A "friend" is just a class or a function that is allowed to "see" the internals of the class that declared it a friend.
Topic archived. No new replies allowed.