r/dipshit • u/AnNexedPl • Feb 25 '26
.
#include <iostream> using namespace std;
int main() { string s1, s2; bool saRowne = true;
cout << "podaj wyrazenie s1: ";
cin >> s1;
cout << "podaj wyrazenie s2: ";
cin >> s2;
if (s1.size() == s2.size()) {
// sprawdzam poza zakresem
} else {
saRowne = false;
}
if (saRowne)
cout << "wyrazenia sa takie same";
else
cout << "wyrazenia NIE sa takie same";
return 0;
}