Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 14 / task5.cpp
diff options
context:
space:
mode:
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
+}