That is fine. I don't need you help. I thought I did a pretty good job or converting it so far. I will figure out the rest. BTW it is an extra credit assignment. I thought I would be honest...
Type: Posts; User: dodgetech
That is fine. I don't need you help. I thought I did a pretty good job or converting it so far. I will figure out the rest. BTW it is an extra credit assignment. I thought I would be honest...
I wish it was that easy! Yes my compiler does C++, but my professor wants it in C only!
Ok I got another Affine Cipher program which was originally coded in C++. You can see the original program here: http://www.cs.ucf.edu/courses/cot5937/sum01/homework/affinetest.cc
Here is my...
Your correct in that I didnt write all the code. The teacher gives us a shell and we need to fill in the missing parts or find what is missing.
I appreciate your time. Remember this is a learning...
Well you can look at my code now, but I still have an issue where the console program stops after the input of my keys. I guess I still have an error somewhere.
#pragma warning ( disable:...
How do you post as plain text? I know...stupid question
I know this is NOT the full answer, but am I going in the correct direction?
void doaffine(char inputfile[], char outputfile[], int a, int b) {
// Checks to see if the key is valid....
This was originally written in C++, but I need to have it in C. This was the code that was under the ELSE in the doaffine() function:
else{
// Opens appropriate files...
Ok I found and fixed my input issue. I needed %s not %c. Now I need to fix the function(doaffine) under the ELSE:
#pragma warning ( disable: 4996)
#include <stdlib.h>
#include <time.h>...
I have this program that is not working properly. Basically, it is supposued to take a file called input.txt which has a single sentence in it and encrypt it to the output file called output.txt. ...
I decided to use FILE* to get the job done
well here is what I came up with if anyone is interested:
#pragma warning( disable:4996)
#include<stdio.h>
//function
Is there an operator in C that does the same thing?
What is the meaning of the & in the function?
void affine(int a, int b, ifstream& input, ofstream& output)
So if I look at this correctly, my issue is in the decrypt function with: flag= flag%26;
Do you agree?
THANKS for your help! I know what debugging is, but have never used it or seen it in action. I will try your suggestion since it makes sense. Be patient with me please!
SORRY, but I have only been programming for 3 months. Before that, I knew absolutely nothing!!!
I AM HERE TO LEARN!
THANKS for your response. However math I am not the best student. Can you at least tell me what lines are the issue?
No one can find an issue here and point me in the right direction?
E(x) = Ax + B (mod N) <= ENCRYPTION FUNCTION
D(x) = A-1(x – B) (mod N) <= DECRYPTION FUNCTION
Note: A and N must be coprime. This means they share no prime factors.
A-1 is the inverse of A (mod...
12292
Above is the screen shot of the program. The output issue is always with the vowels it seems.
I am using Visual Studio and this is the warning:
Warning 1 warning C4996: 'scanf': This function or variable may be unsafe. Consider using scanf_s instead. To disable deprecation, use...
Ok is the indentation any better here?
#pragma warning( disable:4996)
#include<stdio.h>
//function
my problem is still not solved by correcting the indentation. I also do not see why paste as plain text matters either. I just don't understand why I am getting ASCII code 203 symbol in my output! ...
I have this program to turn in for an assignment, and need to know if it is indented properly and I also get some ascii symbols appear instead of the actual letters on the output side. Can anyone...