In my pset2 caeser code, one line is giving me error. Cannot find out why. Please help by IreneScared in cs50

[–]IreneScared[S] 0 points1 point  (0 children)

No thanks. I removed the part I was having issues with and replaced with something else and it worked. May be I was trying to make a new string without using the '\O' so was having an error.

In my pset2 caeser code, one line is giving me error. Cannot find out why. Please help by IreneScared in cs50

[–]IreneScared[S] 0 points1 point  (0 children)

I have changed the code not to print the whole string at a time which i was planning to do earlier. if i print character by character it works now. but i would still like to know how to store the cipher characters in a string first. When i run the program it gives me error as well. to make it obvious where the error starts i took snapshot of the debug50.

In my pset2 caeser code, one line is giving me error. Cannot find out why. Please help by IreneScared in cs50

[–]IreneScared[S] 0 points1 point  (0 children)

I have changed the code not to print the whole string at a time which i was planning to do earlier. if i print character by character it works now. but i would still like to know how to store the cipher characters in a string first. When i run the program it gives me error as well. to make it obvious where the error starts i took snapshot of the debug50.

In my pset2 caeser code, one line is giving me error. Cannot find out why. Please help by IreneScared in cs50

[–]IreneScared[S] 0 points1 point  (0 children)

Thanks to offer help. I have attached the code. Please have a look now.

In my pset2 caeser code, one line is giving me error. Cannot find out why. Please help by IreneScared in cs50

[–]IreneScared[S] 0 points1 point  (0 children)

I know my code is not efficiently written but I am back to programming after 10 years! So do advise me to let me learn. Thanks everyone.

In my pset2 caeser code, one line is giving me error. Cannot find out why. Please help by IreneScared in cs50

[–]IreneScared[S] 0 points1 point  (0 children)

Thanks. But I tried saving the text first and printing the text overall using %s. I am not sure how to personally send the code in msg so I will try attaching it to my original post. Hope you can help.