Skip to content

Conversation

@MaxAdmk
Copy link
Owner

@MaxAdmk MaxAdmk commented Nov 29, 2022

No description provided.

class.h Outdated

};

bool comp(Candidate &a, Candidate &b)

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;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

percent of what?

Copy link

@danyasht danyasht left a 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;

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)

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants