-
Notifications
You must be signed in to change notification settings - Fork 0
First branch #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
First branch #1
Conversation
class.h
Outdated
|
|
||
| }; | ||
|
|
||
| bool comp(Candidate &a, Candidate &b) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why functions start with a small letter
class.h
Outdated
| string name; | ||
| string surname; | ||
| int num_of_votes; | ||
| int percent; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
percent of what?
danyasht
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
now ur code is good, but for the future: use 2 spaces instead tab(due to google c++ code convention)
| string surname; | ||
| int num_of_votes; | ||
| int percent; | ||
| int percent_of_votes; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it looks better now)
| }; | ||
|
|
||
| bool comp(Candidate &a, Candidate &b) | ||
| bool Comp(Candidate &a, Candidate &b) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for changing the function names
No description provided.