Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- template <typename x>
- x average (x*arr, int n,m)
- {
- }
- template <typename Type>
- Type* get(Type(*r_array), int size)
- {
- for (int i = 0; i < size; ++i)
- cin >> r_array[i];
- cout << endl;
- return r_array;
- }
- template <typename Type>
- void put(Type(*r_array), int size)
- {
- for (int i = 0; i < size; ++i)
- cout << r_array[i];
- cout << endl;
- }
- int main()
- {
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment