From 72cfa91965af10ac60574a5ec471727927426b4f Mon Sep 17 00:00:00 2001 From: Angel Dimitriev Date: Sun, 10 Jan 2021 03:29:19 -0500 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 5240d9a..4301cee 100644 --- a/Sem. 14/task5.cpp +++ b/Sem. 14/task5.cpp @@ -66,7 +66,7 @@ bool hasSameWords(const char* sentence1, const char* sentence2) { s1 += 1; len1--; - i = -1; + i = -1; // so it could become 0 for the next iteration continue; } @@ -90,7 +90,7 @@ bool hasSameWords(const char* sentence1, const char* sentence2) s1 += i; len1 -= i; - i = -1; + i = -1; // so it could become 0 for the next iteration delete[] currentWord; } -- cgit v1.3.1-23-gd82d