Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #include <string>
- #include <iostream>
- class Song
- {
- std::string name;
- std::string artist;
- int rating;
- friend std::ostream& operator<<(std::ostream &os, const Song &s);
- public:
- Song();
- Song(std::string n, std::string a, int c);
- int getRating() const;
- std::string getName() const;
- std::string getArtist() const;
- bool operator==(const Song& rhs) const;
- bool operator<(const Song& rhs) const;
- };
Advertisement
Add Comment
Please, Sign In to add comment