Advertisement
Donald_Fortier

Untitled

May 27th, 2015
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. bool isSorted( const int list[], int size )
  5. { /*
  6.     ...
  7.         ...
  8.     return true;
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement