We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a81362 commit bc5c84fCopy full SHA for bc5c84f
lab6.cpp
@@ -65,7 +65,7 @@ std::wstring task1(std::wstring in)
65
std::wstring out = L"";
66
for (wchar_t &chr : in)
67
{
68
- if (!std::iswalpha(chr) && chr < 128 && 0)
+ if (!std::iswalpha(chr) && chr < 128)
69
continue;
70
71
if (out.find(chr) == std::wstring::npos)
@@ -78,7 +78,7 @@ bool test()
78
79
// test task1
80
std::wstring test1 = L"скажи слово паляниця";
81
- std::wstring test1_out = L"скажи ловпянц";
+ std::wstring test1_out = L"скажиловпянц";
82
std::wstring test1_res = task1(test1);
83
if (test1_res != test1_out)
84
0 commit comments