Search:

Type: Posts; User: trbennett

Search: Search took 0.01 seconds.

  1. Thread: strings

    by trbennett
    Replies
    7
    Views
    722

    WOW... That is astounding. Thank you for the...

    WOW... That is astounding.
    Thank you for the great description,
    and your description of it as "poor practice" is an understatement...
  2. Alternatively, examine the methodology described...

    Alternatively, examine the methodology described here: Variable Argument Lists in C and C++ - Cprogramming.com
  3. One other thing to note, you say in the statement...

    One other thing to note, you say in the statement of the problem that "the number of students is unknown", and yet you have placed an arbitrary limit of 100 for your "students" array. That is may be...
  4. Thread: strings

    by trbennett
    Replies
    7
    Views
    722

    I understand the problem on line 6, but could...

    I understand the problem on line 6, but could someone please explain to me line 9's use of
    i[s]
    when i is defined as an int ... how is it an array or subject to array notation (i.e. the 's' as a...
  5. Assuming you want "a" to be an array of pointers,...

    Assuming you want "a" to be an array of pointers,
    which contains pointers to strings read by gets()...

    In the first loop, there are two problems...
    1) you are using "realloc", and not "malloc"...
Results 1 to 5 of 5