Bob103

V-Part 2

Mar 19th, 2016
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. template <typename x>
  5. x average (x*arr, int n,m)
  6. {
  7.  
  8. }
  9.  
  10.  
  11. template <typename Type>
  12. Type* get(Type(*r_array), int size)
  13. {
  14.  
  15. for (int i = 0; i < size; ++i)
  16. cin >> r_array[i];
  17. cout << endl;
  18. return r_array;
  19. }
  20. template <typename Type>
  21. void put(Type(*r_array), int size)
  22. {
  23.  
  24. for (int i = 0; i < size; ++i)
  25. cout << r_array[i];
  26. cout << endl;
  27. }
  28. int main()
  29. {
  30.  
  31. system("pause");
  32. return 0;
  33. }
Advertisement
Add Comment
Please, Sign In to add comment