you’re comparing int
with char
should be:
if (liczba[i] == '0') {}
else if (liczba[i] == '1') {}
0
solved C++ comparing string elements to an int [closed]
you’re comparing int
with char
should be:
if (liczba[i] == '0') {}
else if (liczba[i] == '1') {}
0
solved C++ comparing string elements to an int [closed]