cplusplus:selection_examples
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
cplusplus:selection_examples [2013/02/11 00:58] – [switch] mithat | cplusplus:selection_examples [2013/02/11 01:00] (current) – [switch] mithat | ||
---|---|---|---|
Line 138: | Line 138: | ||
int selection; | int selection; | ||
+ | // Prompt the user for a selection: | ||
cout << " | cout << " | ||
<< | << | ||
Line 145: | Line 146: | ||
cin >> selection; | cin >> selection; | ||
+ | // Give the user what they asked for: | ||
switch (selection) | switch (selection) | ||
{ | { |
cplusplus/selection_examples.1360544316.txt.gz · Last modified: 2013/02/11 00:58 by mithat