Search:

Type: Posts; User: DavidB

Search: Search took 0.00 seconds.

  1. Thread: while --> for

    by DavidB
    Replies
    7
    Views
    772

    In the existing "while" version of the code...

    In the existing "while" version of the code block, the i variable must have some value in order for program execution to make it into the while block in the first place (but not equal to -1). So what...
  2. Replies
    14
    Views
    4,397

    Good suggestions, Salem! I would like to add...

    Good suggestions, Salem!

    I would like to add (if the OP is open to more suggestions) that NETLIB has many random number generation routines. They happen to be written in FORTRAN, but they are...
  3. Replies
    21
    Views
    4,757

    Hi, "sawer". In pure "C", I think your only...

    Hi, "sawer".

    In pure "C", I think your only option for creating dynamic arrays is malloc. You input the matrix or vector dimension, then use malloc to allocate the appropriate amount of space, do...
  4. Replies
    5
    Views
    2,233

    Thanks for all the feedback. I now have a...

    Thanks for all the feedback.

    I now have a working program. One question I wondered about, but didn't post: does the section of code in which vector variables are resized have to be wrapped in a...
  5. Replies
    5
    Views
    2,233

    Dynamic (Numeric) Arrays

    Just joined this forum last night. Found it by way of the STL tutorial elsewhere on this site:

    The STL Vector Class

    I happen to be just getting my feet wet when it comes to dynamic arrays. All...
Results 1 to 5 of 5