Skip to content

Filippov homework5 - #42

Open
dmytrofilippov wants to merge 3 commits into
mainfrom
Filippov_homework5
Open

Filippov homework5#42
dmytrofilippov wants to merge 3 commits into
mainfrom
Filippov_homework5

Conversation

@dmytrofilippov

Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread problem1.cpp Outdated
Comment thread problem1.cpp Outdated
Comment thread problem1.cpp Outdated
Comment thread problem1.cpp Outdated
Comment thread problem1.cpp Outdated
Comment thread problem2.cpp Outdated
Comment on lines +31 to +32
std::string tmp_str;
tmp_str = str.substr(i, Size_Piece);

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.

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

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

} else {
return false;
}

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.

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

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

к сожалению, так не работает

Comment thread problem1.cpp Outdated
Comment thread problem2.cpp
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