Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- templated <class T>
- class MyClass{
- long *array;
- MyClass(long min, long max);
- void Add(long n);
- }
- MyClass<T>::MyClass(long min, long max){
- array= new long[min];
- }
- void MyClass<T>::Add(Long n){
- delete [] array;
- array = new long[n]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement