send me a simple program on friend functions
send me a simple program on friend functions
Send us a simple program on friend functions, then we'll send it back to you with suggestions for improvement and relevant explanation of what you politely ask to be clarified.
Read about the homework policy.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
Send me $1,000,000.
"I am probably the laziest programmer on the planet, a fact with which anyone who has ever seen my code will agree." - esbo, 11/15/2008
"the internet is a scary place to be thats why i dont use it much." - billet, 03/17/2010
Here, I fleshed it out a bit:
Code:#include <Friends> void Chandler() { std::cout << "Sarcastic guy" << std::endl; } void Joey() { std::cout << "Dumb guy" << std::endl; } void Rachel() { std::cout << "Frequently cold party girl" << std::endl; } void Ross() { std::cout << "Nerdy guy" << std::endl; } void Phoebe() { std::cout << "Earthy-crunchy chick" << std::endl; } void Monica() { std::cout << "OCD girl" << std::endl; } int main() { Chandler(); Joey(); Rachel(); Ross(); Phoebe(); Monica(); return 0; }