Search:

Type: Posts; User: Adak

Search: Search took 0.12 seconds.

  1. Thread: populating arrays

    by Adak
    Replies
    12
    Views
    13,897

    Some suggestions: #include ...

    Some suggestions:




    #include <stdio.h> //add

    #define maxarr 10 //change maxarr to a define

    int getInput(void); //88
  2. Thread: populating arrays

    by Adak
    Replies
    12
    Views
    13,897

    Perhaps in a for loop, you could have the input...

    Perhaps in a for loop, you could have the input tested, either in a block of code, or in a function, before assigning the value into your array, something like:



    for(i = 0; i <...
Results 1 to 2 of 2