Search:

Type: Posts; User: vart

Search: Search took 0.06 seconds.

  1. Thread: Vectors:

    by vart
    Replies
    12
    Views
    1,578

    when you get to line 18 for the first time grades...

    when you get to line 18 for the first time grades is not initialized - so behavior is undefined.

    You need to increase warning level and pay attention to the compiler warnings

    Your letterGrade...
  2. Thread: Vectors:

    by vart
    Replies
    12
    Views
    1,578

    on line 21 you are creating vector INSIDE the...

    on line 21 you are creating vector INSIDE the loop.

    So you create vector for each iteration and then initialize only one item of the vector.

    If you need only one int - use one int and not...
Results 1 to 2 of 2