Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "genericCDB.h"
- #include <iostream>
- #include <iomanip>
- #include <ctime>
- using namespace std;
- int main()
- {
- const int SIZE = 5;
- int numbers[SIZE];
- int numbers2[SIZE] = { };
- srand(time(NULL));
- for (int i = 0; i < SIZE; i++)
- numbers[i] = rand() % 101;
- displayArray(numbers, SIZE);
- cout << endl << endl;
- displayArray(numbers, SIZE);
- /*cout << &SIZE << endl;
- cout << numbers << endl;
- cout << &numbers[0] << endl;
- cout << numbers2 << endl;
- cout << &numbers2[0]; */
- cout << endl << endl;
- copyArray(numbers2, numbers, SIZE);
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement