cs 135.txt

  1. What is the first thing to look at when sorting through an array?
    the rows - sorting through rows first is called row major.
  2. How do you call a multi-dimensional array?
    myArray[ MAX_ROWS ][ MAX_COL ]

    • Remember to ask yourself:
    • &bull What do I need? - This will let you know how far to go into the array
    • &bull How do I get it? - This helps you determine how to specify the multi-dimensional array

    Otherwise all standard array rules apply
  3. What should come at the end of a case statement in a switch?
    break;

    If break isn't put in, it will continue to execute another case below it.
Author
MagusOMY
ID
1453
Card Set
cs 135.txt
Description
C++ programming study cards
Updated