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();
};
c++
New contributor
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.
add a comment |
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();
};
c++
New contributor
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
add a comment |
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();
};
c++
New contributor
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++
c++
New contributor
New contributor
edited 20 hours ago
Heslacher
44.6k460154
44.6k460154
New contributor
asked 20 hours ago
Pham185221
1
1
New contributor
New contributor
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
add a comment |
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
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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