0
SMS decryption in C
I have a problem with the code below. It runs fine on Solo learn. But when I run it on another IDE (my system or C++ android app), it dosen't decrypt the last word. So if I input "d gf" it will output "the gf" instead of "the girlfriend". So can you please run this code on another IDE and tell me why it isn't processing the last word but Sololearn is doing so. https://code.sololearn.com/cLOLJQbH30ah/?ref=app
5 Réponses
+ 3
Hi I deleted my original post as my suggestion worked in my IDE but not in sololearn.... weird.
anyway...see my previous posted link which now works in both.
+ 2
I initially though the the newline character (which is considered part of the string when using fgets()) was the problem..but it wasn't... so just coded it the way I though it would work. sending the pointer to the sms in the while loop.
+ 1
Try this ;
https://code.sololearn.com/cA18A0a6a14A
0
rodwynnejones thanks. It worked. Can you explain how that made it work please?
0
rodwynnejones Thanks a lot. I was really confused. Thanks. This does bring up another question as why Sololearn isn't working the same way as other IDE's. But thanks for your help