0

style50 is giving me a "failed to parse" error message. In other words, style50 is not working. It is not able to parse thru my program. Any ideas on how to fix this?

2
  • I believe I have the answer to this problem. After much trial and error, I ended up removing two words from the program - isupper and islower. style50 now works. I don't think style50 can handle isupper or islower. Maybe someone else wants to test this out? Feb 23 '15 at 0:31
  • I now know what exactly causes the 'failed to parse'. The following statement causes the problem - if isupper(plaintext[i]) - change the statement to - if (isupper(plaintext[i])) - and now style50 works. Adding the extra parenthesis fixes style50. The program will compile and work either way, but style50 only works if the parenthesis are surrounding the isupper or islower. Feb 23 '15 at 1:53
1

I now know what exactly causes the 'failed to parse'. The following statement causes the problem

if isupper(plaintext[i])

change the statement to:

if (isupper(plaintext[i]))

and now style50 works.

Adding the extra parenthesis fixes style50. The program will compile and work either way, but style50 only works if the parentheses are surrounding the isupper or islower.

-2

Make sure that you are writing the command in the right format. e.g.

style50 caesar.c

make sure not to forget the extension of the file .c

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .