From 2ecab34dd7023fa3402d7f113acb7c602036f208 Mon Sep 17 00:00:00 2001 From: Angel Dimitriev Date: Sat, 9 Jan 2021 16:20:53 +0200 Subject: Update task5.cpp --- Sem. 14/task5.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Sem. 14/task5.cpp') diff --git a/Sem. 14/task5.cpp b/Sem. 14/task5.cpp index 9ea3923..5240d9a 100644 --- a/Sem. 14/task5.cpp +++ b/Sem. 14/task5.cpp @@ -4,7 +4,7 @@ using namespace std; const int MAX_LEN = 1024; - +//returns -1 if searched is not found in str. returns the index otherwise. int contains(const char* str, const char* searched) { int len1 = strlen(str); @@ -107,4 +107,4 @@ int main() //cin.getline(sentence2, MAX_LEN); cout << hasSameWords("hello friends bye enemy", "bye friends hello enemy"); -} \ No newline at end of file +} -- cgit v1.3.1-23-gd82d