Search:

Type: Posts; User: dodgetech

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. That is fine. I don't need you help. I thought...

    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...
  2. I wish it was that easy! Yes my compiler does...

    I wish it was that easy! Yes my compiler does C++, but my professor wants it in C only!
  3. Converted C++ program to C Mostly done but need suggestion on pointers I think

    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...
  4. Your correct in that I didnt write all the code. ...

    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...
  5. Well you can look at my code now, but I still...

    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:...
  6. How do you post as plain text? I know...stupid...

    How do you post as plain text? I know...stupid question
  7. I know this is NOT the full answer, but am I...

    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....
  8. This was originally written in C++, but I need to...

    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...
  9. Ok I found and fixed my input issue. I needed %s...

    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>...
  10. Need help with phantoms and function(affine)

    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. ...
  11. Replies
    6
    Views
    1,680

    I decided to use FILE* to get the job done

    I decided to use FILE* to get the job done
  12. well here is what I came up with if anyone is...

    well here is what I came up with if anyone is interested:




    #pragma warning( disable:4996)
    #include<stdio.h>


    //function
  13. Replies
    6
    Views
    1,680

    Is there an operator in C that does the same...

    Is there an operator in C that does the same thing?
  14. Replies
    6
    Views
    1,680

    What is the meaning of

    What is the meaning of the & in the function?




    void affine(int a, int b, ifstream& input, ofstream& output)
  15. So if I look at this correctly, my issue is in...

    So if I look at this correctly, my issue is in the decrypt function with: flag= flag%26;
    Do you agree?
  16. THANKS for your help! I know what debugging is,...

    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!
  17. SORRY, but I have only been programming for 3...

    SORRY, but I have only been programming for 3 months. Before that, I knew absolutely nothing!!!

    I AM HERE TO LEARN!
  18. THANKS for your response. However math I am not...

    THANKS for your response. However math I am not the best student. Can you at least tell me what lines are the issue?
  19. No one can find an issue here and point me in the...

    No one can find an issue here and point me in the right direction?
  20. E(x) = Ax + B (mod N)

    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...
  21. 12292 Above is the screen shot of the program....

    12292

    Above is the screen shot of the program. The output issue is always with the vowels it seems.
  22. I am using Visual Studio and this is the warning:...

    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...
  23. Ok is the indentation any better here? ...

    Ok is the indentation any better here?




    #pragma warning( disable:4996)
    #include<stdio.h>


    //function
  24. my problem is still not solved by correcting the...

    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! ...
  25. Can anyone see any errors in this cipher code?

    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...
Results 1 to 25 of 39
Page 1 of 2 1 2