Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 14 / task5.cpp
diff options
context:
space:
mode:
Commit2ecab34dd7023fa3402d7f113acb7c602036f208 (patch)
Author
 Angel Dimitriev <achi_d@abv.bg>
2021-01-09 16:20:53 +0200
Committer
 GitHub <noreply@github.com>
2021-01-09 16:20:53 +0200
Files527f386f0dafb8ff894e979cff990b6fba8a1ad2 /Sem. 14/task5.cpp
Introduction_to_programming_FMI-2ecab34dd7023fa3402d7f113acb7c602036f208.tar
Introduction_to_programming_FMI-2ecab34dd7023fa3402d7f113acb7c602036f208.tar.gz
Introduction_to_programming_FMI-2ecab34dd7023fa3402d7f113acb7c602036f208.zip
Parent44adf9d35e7e1b8075514b716e95c0fed6bdbe52 (diff)
Update task5.cpp
1 files changed, 2 insertions, 2 deletions
-rw-r--r--Sem. 14/task5.cpp4
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
+}