Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions sem1/andreychetporov/hw2/task1.cpp
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

не та папка

This file was deleted.

30 changes: 0 additions & 30 deletions sem1/andreychetporov/hw2/task2.cpp

This file was deleted.

17 changes: 17 additions & 0 deletions sem1/andreychetporov/minihw2_4.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#include <iostream>
#include <vector>
#include <string>

auto func = [](std::vector<std::string>& vec) -> std::vector<int> {
std::vector<int> len;
for (int i = 0; i < vec.size(); i++) {
len.push_back(vec[i].length());
std::cout << "string: " << vec[i] << " has length " << vec[i].length() << "\n";
}
return len;
};

int main() {
std::vector<std::string> vec{ "1293490890", "jsfaoikjhoias", "KSOFJHOioihsfiuoah928", "sajfoihj38fHf_9f"};
func(vec);
}