Search:

Type: Posts; User: blackfox_1109

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Need help fixing command prompt file input issue

    Im writing program for a rail fence cipher that should run from the command prompt and take in two .txt files, one containing the key for how many rails there should be (between 1 and 25) and the...
  2. Replies
    12
    Views
    1,658

    This piece of code produces an error only when...

    This piece of code produces an error only when run though Linux servers. My IDE and debuggers don't have a problem with it on my system. I don't know why it is causing the error. I have tried...
  3. Replies
    12
    Views
    1,658

    Also, do you know of any tools similar to...

    Also, do you know of any tools similar to electricfence or valgrind that would work on Windows? I have been testing my code on Linux via an emulator, but I'm writing the code on Windows 8
  4. Replies
    12
    Views
    1,658

    And sorry to everyone for posting multiple...

    And sorry to everyone for posting multiple threads about the project. I wasnt sure what the right thing to do was for multiple errors. Since I had resolved the issues I had been experiencing in the...
  5. Replies
    12
    Views
    1,658

    I thought I had gotten rid of the duplicated...

    I thought I had gotten rid of the duplicated code. At least I thought I had changed what you suggested. I had thought when you said duplicated code that I had inadvertently done something, and then...
  6. Replies
    12
    Views
    1,658

    I'm not really sure how debuggers work or how to...

    I'm not really sure how debuggers work or how to set up my program to support the debugger (I'm using codeblocks, but the option to run the debugger isn't clickable). From what I've found online, the...
  7. Replies
    12
    Views
    1,658

    Please Help! Segfaults and crashes!

    When I go to run the Fibonacci function ( fib ), it begins to return incorrect calculations towards the higher numbers, but then seems to correct itself for a little bit, but then does it again and...
  8. Please help! I am so lost as to how to fix this!

    I am relatively new to programming, and I have been working on this program for several days. I have gotten all my functions to work perfectly, except for my intAdd function, and I cant seem to...
  9. that worked, thank you!

    that worked, thank you!
  10. Replies
    2
    Views
    1,963

    Help troubleshooting

    I posted this previously, but I had not included the test cases along with all other functions with it. Below is the full program. I know I am getting incorrect data or crashes with hugeAdd, and...
  11. Replies
    1
    Views
    1,806

    Need help troubleshooting functions

    My program uses a huge integer structure, that saves all the elements of a integer too big to be expressed in 32-bit integers, and stores each digit in a spot in an array.

    Here is the HugeInteger...
  12. How can you take a string of numbers and turn it into an array of integers?

    I know strings are essentially just arrays of characters, so what would be the easiest way to take each individual digit and put it into a separate space in an array?

    ex.) *str = "90210"
    ...
  13. It is a predefined string given in the program's...

    It is a predefined string given in the program's main function
  14. Turning a string of numbers into an array of individual integers

    I know there is a clear solution to this, but I cant seem to find it.
    In my program, I am fed a string that contains integers such as


    *str = "45678"

    and my program is simply supposed to...
  15. Segfaulting when I pass it through the function again

    Everything in my functions are working perfectly except this one. The only problem I come across with this function is when I call it again on the same pointer, after the function has already made it...
  16. Recieving two warnings and one error I cant figure out how to fix

    I'm writing a program that contains functions to be used by multiple possible main files. Before I test to make sure everything is working correctly I'd like to get rid of anything that could give me...
  17. Is freeing the original function entirely...

    Is freeing the original function entirely unnecessary because I am just sending it right back to the exact same addresses?

    And what is the format for realloc so that I could use it in the future...
  18. Need help transferring contents of one character array to another in function

    In the function *expandArrayList and *trimArrayList I need to allocate either more memory or less memory to the given array. Right now I am using malloc on a new array and then transferring the...
  19. Replies
    9
    Views
    2,657

    From what I understood, you can declare and use...

    From what I understood, you can declare and use the pointer in the same line if you do


    int *foo = malloc(sizeof(int));
  20. Replies
    9
    Views
    2,657

    Since the first thing in the main looks something...

    Since the first thing in the main looks something like


    Arraylist *L1 = createarraylist( //the desired arraylist length );

    That is why in my first function I return a pointer to a function...
  21. Replies
    9
    Views
    2,657

    Issues with character arraylists

    I'm working on a program right now that requires me to do a couple of things. First, I have a structure with a couple things in it such as a character arraylist, and then information on that list...
  22. I've fixed most of it. But the only issue I'm...

    I've fixed most of it. But the only issue I'm still having is that case 2 keeps on repeating itself and I can't figure out how to get out of it.
  23. I cant tell what is wrong with my break statements

    when the program is done with one of the games, it moves on to the next game, rather than returning to the menu and letting the user decide.



    //included libraries
    #include <stdio.h>
    #include...
  24. Arithemtic and guessing game program not working right

    I am relatively new to C programming, and I am encountering numerous issues with this program that I cant seem to figure out how to fix.

    First, when the user selects the arithmetic game, I keep...
  25. Replies
    5
    Views
    691

    I cant believe I missed that. Thank you. The...

    I cant believe I missed that. Thank you.

    The problem has one more problem when it attempts to subtract the requests from the donations. It will take out the donations and reset the donations to...
Results 1 to 25 of 29
Page 1 of 2 1 2