Questions tagged [ascii]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
55 views

My pset2 caesar program keeps giving an output of 0, how to get to the ciphertext?

I came up with these lines of code to get from a character in the plaintext to a new character in the ciphertext. I keep getting an ouput of 0 everytime I run it, no matter which key I choose or which ...
0
votes
1answer
48 views

Mario Less Loops doubt and code review

I have attempted the PSET 1 of 2020 CS50x and have a couple of doubts. Could someone check if the following code for Mario less one is correct. If it is I also had a question that what should I put ...
0
votes
1answer
131 views

Pset2 - Substitution - “Output not valid ASCII text” error despite correct cipher output

after running check50 I am getting an "output not valid ASCII text" error for the following problems: :( encrypts "A" as "Z" using ZYXWVUTSRQPONMLKJIHGFEDCBA as key output not valid ASCII text :...
0
votes
2answers
105 views

pset2 substitution - isalpha doesn't seem to recognize letters

I'm relatively inexperienced at programming, but I thought I understood how to use command-line prompts well enough to try the substitution problem. I'm having an issue with isalpha that I don't ...
0
votes
0answers
51 views

pset2 ceaser question about wraparound text and argc

here's the code (only look if you've completed this section!): http://pastebin.com/xNV5VJAw I was able to pretty quickly write a program the moves characters by k spaces, but I can't get it to wrap ...
1
vote
1answer
109 views

What to do with the ASCII key & math?

I'm having a hard time understanding what to do with the ASCII keys & math formula. I understand that you move your plaintext over by the K amount, however, I'm not sure how to write this in code. ...
-1
votes
2answers
93 views

Why doesn't this work?

I have created two things for pset2 a caesar cipher encryptor and decryptor. My encryptor works and it is called caesar.c, but my decryptor(decryptor.c) doesn't work and I can't figure out why? Here ...
0
votes
1answer
94 views

caesar store ascii value as int, in loop

I have tried using single quotes notation to store the ascii value of a char in an int, but only as a hard coded character. I can't get it to work as it loops through the chars in the string. I tried ...