Recent content by osu3124

  1. O

    MHB Trouble Printing Out Array Elements with a For Loop

    I am having problems with printing out each elements of the array using a for loop It's suppose to look like this: Enter non-negative numbers (ints) terminated by -99 1 2 3 4 5 6 -99 Original list (6 values): 1, 2, 3, 4, 5, 6. the code's output looks like: Enter non-negative numbers (ints)...
  2. O

    C/C++ Resize Vector and Populate with Integers for C++ CountDown Problem

    Problem Statement: Resize vector countDown to have newSize elements. Populate the vector with integers {newSize, newSize - 1, ..., 1}. Ex: If newSize = 3, then countDown = {3, 2, 1}, and the sample program outputs: 3 2 1 Go! Code I have so far, it works but I don't understand how to populate...
Back
Top