We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
  • HackerRank Home

    HackerRank

  • |
  • Prepare
  • Certify
  • Compete
  • Hiring developers?
  1. Prepare
  2. C++
  3. Debugging
  4. Overloading Ostream Operator
  5. Discussions

Overloading Ostream Operator

Problem
Submissions
Leaderboard
Discussions
Editorial

    You are viewing a single comment's thread. Return to all comments →

  • abdulrahmannase1
    2 months ago+ 0 comments
    ostream& operator<<(ostream& out,const Person& pers){
        out<<"first_name="<<pers.get_first_name()<<","<<"last_name="<<pers.get_last_name();
        return out;
    }
    
    0|
    Permalink
  • Blog
  • Scoring
  • Environment
  • FAQ
  • About Us
  • Support
  • Careers
  • Terms Of Service
  • Privacy Policy