Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- bool isSorted( const int list[], int size )
- { /*
- ...
- ...
- return true;
- */ }
- int main()
- {
- cout << " Enter list: ";
- int SIZE;/* only const are ALL_CAPS */
- cin >> SIZE;
- const int A = SIZE;/* Why redefine size as A instead of just using size? */
- int number[A];
- for (int i = 0; i < SIZE; i++)
- {
- cin >> number[i];
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement