Search:

Type: Posts; User: racerday182

Search: Search took 0.00 seconds.

  1. Replies
    6
    Views
    2,589

    I just need to print out a key for each iteration...

    I just need to print out a key for each iteration of a loop so I don't think I need to pass anything. I changed my code to say:


    class Key
    {
    private:
    struct key_element
    {
    char enc;
    char...
  2. Replies
    6
    Views
    2,589

    Oh I am sorry, I forgot to copy that in as part...

    Oh I am sorry, I forgot to copy that in as part of my code but I actually had


    struct key_element
    {
    char enc;
    char dec;
    int man_flag;
    };
    struct key_element key[26];
  3. Replies
    6
    Views
    2,589

    C++ Program Classes Question

    Hey guys,
    I was working on a program where I am supposed to convert a c program to a C++ program and I was running into some trouble converting a function to a member function in a class.
    I am...
  4. Replies
    7
    Views
    2,081

    LOL oh thanks good idea. Okay, well that gets...

    LOL oh thanks good idea.
    Okay, well that gets rid of the System.NullReferenceException but it's still only reading in the first line of the ciphertext because when it loops through, every other line...
  5. Replies
    7
    Views
    2,081

    I am doing that in my code, I just didn't show it...

    I am doing that in my code, I just didn't show it here.

    Tabstop, I have now changed my code to:


    while((fgets(input,80,fp))!=NULL)
    {
    ciphertext[m]=new char(strlen(input)+1);...
  6. Replies
    7
    Views
    2,081

    Yeah we don't have to do that Yay! now the...

    Yeah we don't have to do that

    Yay! now the program compiles but it only runs for the first instance of the loop. After the program executes through the while loop the first time it gives me a...
  7. Replies
    7
    Views
    2,081

    C++ program help

    Hey guys,
    I was working on a program where I had to convert an old C program into a C++ program.
    I am supposed to create a ciphertext class and use it to output a ciphertext that I get from a file....
  8. Replies
    14
    Views
    5,174

    Bugs in Program Question

    Hey guys,
    I was studying for my test and I came across a question that left me baffled. I am supposed to find and fix the bugs in the code below. I was able to find 2 bugs and I was hoping one of...
  9. Replies
    5
    Views
    4,846

    Next Step

    Arite, tried that and it gets rid of the errors, but what do I need to do to actually get the program to print out the ciphertext, do i need to define some private members within my class?
    Oh and...
  10. Replies
    5
    Views
    4,846

    C to C++ conversion

    Hey everybody,
    I was having trouble completing my last assignment which required me to redesign a C program into a C++ program using classes and objects.
    So far my Cpp code looks like this:...
  11. Replies
    2
    Views
    4,778

    Packets C Programming Question!!

    Any HELP would be greatly appreciated. THANKSSSS

    I'm sorry if I made it seem like I was spamming the forums with my homework. Rather, I was just looking for a starting off point. From now, I will...
Results 1 to 11 of 11