Skip to content

Comments

Added first version of test 2.3#32

Open
AntonChern wants to merge 4 commits intomasterfrom
test2.3
Open

Added first version of test 2.3#32
AntonChern wants to merge 4 commits intomasterfrom
test2.3

Conversation

@AntonChern
Copy link
Owner

No description provided.

@@ -0,0 +1 @@
fff 5;ghh 8;abc 9;dhjghjd 0;hfdjhf 3;dttttt 4 No newline at end of file
Copy link
Collaborator

Choose a reason for hiding this comment

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

ну вообще формат файла в условии описан другой

return result;
}

bool isAbove(ListElement *first, ListElement *second)
Copy link
Collaborator

Choose a reason for hiding this comment

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

для этого есть библиотечная функция strcmp()

void swapSurnames(ListElement *first, ListElement *second)
{
ListElement *pilot = new ListElement {};
pilot->surname = new char[maxLength] {};
Copy link
Collaborator

Choose a reason for hiding this comment

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

а эти кто удалит? тут памяти утекает тьма

delete pilot;
}

void sortDanger(ListElement *element)
Copy link
Collaborator

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.

2 participants