Error

I needed some help figuring out what is wrong with this bit of code.


Put the code you need help with here.
char str[] = “Stop”;
if [isupper[str] == “STOP”}
exit (0);
Lots of things are wrong.

char str[] = “Stop”; // That's not even quotes around Stop, use these -> " "

if [isupper[str] == “STOP”} // That's how if statements work, that's not how isupper works.

http://www.cprogramming.com/tutorial/lesson2.html
http://www.cplusplus.com/reference/cctype/isupper/
Last edited on
Ah I understand now really appreciate the help
Topic archived. No new replies allowed.