Skip to content

Filippov homework5#42

Open
dmytrofilippov wants to merge 3 commits intomainfrom
Filippov_homework5
Open

Filippov homework5#42
dmytrofilippov wants to merge 3 commits intomainfrom
Filippov_homework5

Conversation

@dmytrofilippov
Copy link
Collaborator

No description provided.

problem2.cpp Outdated
Comment on lines 31 to 32
std::string tmp_str;
tmp_str = str.substr(i, Size_Piece);
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
std::string tmp_str;
tmp_str = str.substr(i, Size_Piece);
std::string tmp_str{str.substr(i, Size_Piece)};

Comment on lines +61 to +65
if (str[i] >= '0' && str[i] <= '9') {

} else {
return false;
}
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
if (str[i] >= '0' && str[i] <= '9') {
} else {
return false;
}
if (str[i] < '0' || str[i] > '9') {
return false;
}

Copy link
Collaborator Author

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

Comments