SHOW:
|
|
- or go back to the newest paste.
| 1 | #include <iostream> | |
| 2 | using namespace std; | |
| 3 | ||
| 4 | bool isSorted( const int list[], int size ) | |
| 5 | { /*
| |
| 6 | ... | |
| 7 | - | int SIZE; |
| 7 | + | ... |
| 8 | return true; | |
| 9 | - | const int A = SIZE; |
| 9 | + | */ } |
| 10 | ||
| 11 | int main() | |
| 12 | {
| |
| 13 | cout << " Enter list: "; | |
| 14 | int SIZE;/* only const are ALL_CAPS */ | |
| 15 | cin >> SIZE; | |
| 16 | const int A = SIZE;/* Why redefine size as A instead of just using size? */ | |
| 17 | int number[A]; | |
| 18 | ||
| 19 | for (int i = 0; i < SIZE; i++) | |
| 20 | {
| |
| 21 | cin >> number[i]; | |
| 22 | } | |
| 23 | ||
| 24 | ||
| 25 | ||
| 26 | ||
| 27 | ||
| 28 | return 0; | |
| 29 | } |