Skip to content

Completed cfraction#48

Open
Annarrchy wants to merge 1 commit into
FlyLikeSoarin:masterfrom
Annarrchy:Anna-Efimova-task-2
Open

Completed cfraction#48
Annarrchy wants to merge 1 commit into
FlyLikeSoarin:masterfrom
Annarrchy:Anna-Efimova-task-2

Conversation

@Annarrchy

Copy link
Copy Markdown

Completed cfraction + переделанные ветки

}
x += '.';
siz += 1;
return siz - 1;

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

return siz++;

return siz - 1;
}

int if_null(std::string x, int left, int right) {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Лучше назвать is_null, а возвращаемое значение заменить на bool. тогда не нужно будет выполнять лишние значения.

std::cin >> x >> y;

if (x[0] != '-' && y[0] == '-') std::cout << '>';
else if (x[0] == '-' && y[0] != '-') std::cout << '<';

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Тело else всегда должено быть в скобках

else if (x[0] != '-' && y[0] != '-') std::cout << compare(x, y);
else {
char byabs = compare(x, y);
if (byabs == '>') std::cout << '<';

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

std::cout << byabs;

А что значит byabs?


int index_dot(const char* x) {
int i;
for(i = 0; x[i]; i++)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Тело цикла всега в фигурных скобках

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