Hello, I have to write a function that will check if the string is legas or not.
Legal means that only letters is allowed and the ','. So abc,AV is legal but abc,4av is not. The problem is when I enter something with the ' ' , so when I enter abc, ABC I get legal.
what am I doing wrong?
I think yours is a little complicated than it should be. idk if you are allowed to use the cctype header but it has exactly what you need for this problem.