Create the object restaurant class [on hold]











up vote
0
down vote

favorite












Can someone help me to create the review object for restaurant class in C++



class Restaurant {
void Review( string name, double rate, string namereview){
}

private:

string name;
string address;
string genre;
double rating = 0;
int numOfRating = 0;


public:
const string &getName() const;

void setName(const string &name);

const string &getAddress() const;

void setAddress(const string &address);

const string &getGenre() const;

void setGenre(const string &genre);

double getRating() const;

void rate(int score);

void display();
};









share|improve this question









New contributor




Pham185221 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











put on hold as off-topic by Incomputable, Heslacher, Sᴀᴍ Onᴇᴌᴀ, Toby Speight, Mathias Ettinger 18 hours ago


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Code not implemented or not working as intended: Code Review is a community where programmers peer-review your working code to address issues such as security, maintainability, performance, and scalability. We require that the code be working correctly, to the best of the author's knowledge, before proceeding with a review." – Incomputable, Heslacher, Sᴀᴍ Onᴇᴌᴀ, Toby Speight, Mathias Ettinger

If this question can be reworded to fit the rules in the help center, please edit the question.









  • 5




    Welcome to CodeReview! This site improves completed, working code. I don't think any site on stack exchange network can help you with your problem, as writing code for somebody else who didn't attempt to solve the problem is discouraged here.
    – Incomputable
    20 hours ago















up vote
0
down vote

favorite












Can someone help me to create the review object for restaurant class in C++



class Restaurant {
void Review( string name, double rate, string namereview){
}

private:

string name;
string address;
string genre;
double rating = 0;
int numOfRating = 0;


public:
const string &getName() const;

void setName(const string &name);

const string &getAddress() const;

void setAddress(const string &address);

const string &getGenre() const;

void setGenre(const string &genre);

double getRating() const;

void rate(int score);

void display();
};









share|improve this question









New contributor




Pham185221 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











put on hold as off-topic by Incomputable, Heslacher, Sᴀᴍ Onᴇᴌᴀ, Toby Speight, Mathias Ettinger 18 hours ago


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Code not implemented or not working as intended: Code Review is a community where programmers peer-review your working code to address issues such as security, maintainability, performance, and scalability. We require that the code be working correctly, to the best of the author's knowledge, before proceeding with a review." – Incomputable, Heslacher, Sᴀᴍ Onᴇᴌᴀ, Toby Speight, Mathias Ettinger

If this question can be reworded to fit the rules in the help center, please edit the question.









  • 5




    Welcome to CodeReview! This site improves completed, working code. I don't think any site on stack exchange network can help you with your problem, as writing code for somebody else who didn't attempt to solve the problem is discouraged here.
    – Incomputable
    20 hours ago













up vote
0
down vote

favorite









up vote
0
down vote

favorite











Can someone help me to create the review object for restaurant class in C++



class Restaurant {
void Review( string name, double rate, string namereview){
}

private:

string name;
string address;
string genre;
double rating = 0;
int numOfRating = 0;


public:
const string &getName() const;

void setName(const string &name);

const string &getAddress() const;

void setAddress(const string &address);

const string &getGenre() const;

void setGenre(const string &genre);

double getRating() const;

void rate(int score);

void display();
};









share|improve this question









New contributor




Pham185221 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











Can someone help me to create the review object for restaurant class in C++



class Restaurant {
void Review( string name, double rate, string namereview){
}

private:

string name;
string address;
string genre;
double rating = 0;
int numOfRating = 0;


public:
const string &getName() const;

void setName(const string &name);

const string &getAddress() const;

void setAddress(const string &address);

const string &getGenre() const;

void setGenre(const string &genre);

double getRating() const;

void rate(int score);

void display();
};






c++






share|improve this question









New contributor




Pham185221 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Pham185221 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 20 hours ago









Heslacher

44.6k460154




44.6k460154






New contributor




Pham185221 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 20 hours ago









Pham185221

1




1




New contributor




Pham185221 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Pham185221 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Pham185221 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




put on hold as off-topic by Incomputable, Heslacher, Sᴀᴍ Onᴇᴌᴀ, Toby Speight, Mathias Ettinger 18 hours ago


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Code not implemented or not working as intended: Code Review is a community where programmers peer-review your working code to address issues such as security, maintainability, performance, and scalability. We require that the code be working correctly, to the best of the author's knowledge, before proceeding with a review." – Incomputable, Heslacher, Sᴀᴍ Onᴇᴌᴀ, Toby Speight, Mathias Ettinger

If this question can be reworded to fit the rules in the help center, please edit the question.




put on hold as off-topic by Incomputable, Heslacher, Sᴀᴍ Onᴇᴌᴀ, Toby Speight, Mathias Ettinger 18 hours ago


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Code not implemented or not working as intended: Code Review is a community where programmers peer-review your working code to address issues such as security, maintainability, performance, and scalability. We require that the code be working correctly, to the best of the author's knowledge, before proceeding with a review." – Incomputable, Heslacher, Sᴀᴍ Onᴇᴌᴀ, Toby Speight, Mathias Ettinger

If this question can be reworded to fit the rules in the help center, please edit the question.








  • 5




    Welcome to CodeReview! This site improves completed, working code. I don't think any site on stack exchange network can help you with your problem, as writing code for somebody else who didn't attempt to solve the problem is discouraged here.
    – Incomputable
    20 hours ago














  • 5




    Welcome to CodeReview! This site improves completed, working code. I don't think any site on stack exchange network can help you with your problem, as writing code for somebody else who didn't attempt to solve the problem is discouraged here.
    – Incomputable
    20 hours ago








5




5




Welcome to CodeReview! This site improves completed, working code. I don't think any site on stack exchange network can help you with your problem, as writing code for somebody else who didn't attempt to solve the problem is discouraged here.
– Incomputable
20 hours ago




Welcome to CodeReview! This site improves completed, working code. I don't think any site on stack exchange network can help you with your problem, as writing code for somebody else who didn't attempt to solve the problem is discouraged here.
– Incomputable
20 hours ago















active

oldest

votes






















active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

Costa Masnaga

Fotorealismo

Sidney Franklin