Search:

Type: Posts; User: jacka1993

Search: Search took 0.00 seconds.

  1. Replies
    14
    Views
    2,914

    awesome thanks. integrated it with my code and...

    awesome thanks. integrated it with my code and now it works perfect :) thank you to everyone that replied so fast and so well! cheers
  2. Replies
    14
    Views
    2,914

    thanks!! getting really close now. it works...

    thanks!! getting really close now. it works perfect for the first value of average but after that returns average[1] as -173741763 or whatever indicating theres nothing there or its being filled...
  3. Replies
    14
    Views
    2,914

    well initial array is 40.. but imagine it was 7....

    well initial array is 40.. but imagine it was 7. your average positions 0-4 then positions 1-5 etc. so you actually have a shorter array after it has been averaged. ok so how do i use the size_t when...
  4. Replies
    14
    Views
    2,914

    i did that, but what do i set for 35? and what do...

    i did that, but what do i set for 35? and what do i pass into the function for size_t input_count? im not familiar with size_t
  5. Replies
    14
    Views
    2,914

    the debugger sets a breakpoint on the closing...

    the debugger sets a breakpoint on the closing bracket of main if that is at all helpful
  6. Replies
    14
    Views
    2,914

    current code is below. and it crashes with 'debug...

    current code is below. and it crashes with 'debug error: run-time check failure #2. stack around the variable 'start_array' is corrupted




    int main()
    {
    int start_array[40] =...
  7. Replies
    14
    Views
    2,914

    so i have tried the passing thing u said. i made...

    so i have tried the passing thing u said. i made an array called average, and then i change the function to
    void average_array(int input[], int average[])where input is the initial array and...
  8. Replies
    14
    Views
    2,914

    Averaging Array with a Function

    Hey guys im trying to write a program that averages an array over every 5 values and stores this in a new array.
    e.g. array = [1,2,3,4,5,6,7,8]
    averaged_array = [ (1+2+3+4+5)/5, (2+3+4+5+6)/5,...
  9. Replies
    1
    Views
    7,157

    C Program to desktop application??

    Hey guys i've recently written a program that performs file encryption on a simple .txt file using visual studio.
    I wanted to try and make this into a small application which creates a better...
  10. thank you so much!! so much easier when you step...

    thank you so much!! so much easier when you step me through it like that :)
    if i was to save each token into its own variable, is the best way to have an array of pointers e.g. array[5] for 5...
  11. not quite understanding the code above put anyway...

    not quite understanding the code above put anyway here is where i am at:
    my main function below takes the user input 'main-input' using fgets and prints it. this works fine. i then have a pointer...
  12. thanks for the update! yea i knew it was really...

    thanks for the update! yea i knew it was really broken.. just sort of gave up and asked for help in the middle of fixing it haha sorry!

    anyway i didn't realise that a normal char was only 1...
  13. issues combining pointers\arrays\functions :(

    Hi guys. I have an assignment and am having trouble making the functions, pointers, and character strings/arrays work together.
    I have to use fgets() to take an input, then split it into the...
Results 1 to 13 of 13