Advertisement
Guest User

Untitled

a guest
Nov 24th, 2014
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. templated <class T>
  2. class MyClass{
  3. long *array;
  4. MyClass(long min, long max);
  5. void Add(long n);
  6. }
  7.  
  8. MyClass<T>::MyClass(long min, long max){
  9. array= new long[min];
  10. }
  11. void MyClass<T>::Add(Long n){
  12. delete [] array;
  13. array = new long[n]
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement