17th Apr 2020, 3:22 PM
Manthan Gohel
Manthan Gohel - avatar
6 Respuestas
+ 2
~ swim ~ It worked! Thanks man! But why did you use getchar(); before fgets();?
17th Apr 2020, 8:05 PM
Manthan Gohel
Manthan Gohel - avatar
+ 1
~ swim ~ I changed the program my self, but now it is not showing any output, And yeah the integer input is for the key for decrypt or encrypt the text.
17th Apr 2020, 7:07 PM
Manthan Gohel
Manthan Gohel - avatar
+ 1
~ swim ~ Hi, The code is now functional, but I can only get a word from the user, I want to get a sentence from the user I used scanf() for the word input, I tried fgets(), gets() and scanf("%[^\n]*c, snts) but I can't take a sentence from user, Can you help with that?
17th Apr 2020, 7:40 PM
Manthan Gohel
Manthan Gohel - avatar
+ 1
~ swim ~ I am taking two strings and an integer from the user, 1st string for the decision Decrypt or Encrypt 2nd string for the sentence(currently word) and The integer for the key of cipher
17th Apr 2020, 7:48 PM
Manthan Gohel
Manthan Gohel - avatar
+ 1
decrypt Manthan 1 Output: Nbouibo
17th Apr 2020, 7:51 PM
Manthan Gohel
Manthan Gohel - avatar
+ 1
~ swim ~ Again, thank you very much for the help! I understood the reason.
17th Apr 2020, 8:09 PM
Manthan Gohel
Manthan Gohel - avatar