Recent content by osu3124
-
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)...- osu3124
- Thread
- Array Elements Loop Printing
- Replies: 1
- Forum: Programming and Computer Science
-
O
C/C++ Resize Vector and Populate with Integers for C++ CountDown Problem
I got it working. Thanks so much!- osu3124
- Post #3
- Forum: Programming and Computer Science
-
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...- osu3124
- Thread
- C++ Vector
- Replies: 2
- Forum: Programming and Computer Science