Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// http://www.cplusplus.com/forum/beginner/75558/
- #include <iostream>
- #include "myArray.h"
- #include <cstdlib>
- int main()
- {
- try //TRY BLOCK
- {
- myArray<int> mObj(3);
- std::cout << mObj;
- std::cout << mObj[5];
- }
- catch(std::string std) //CATCH ERROR
- {
- std::cout << std << std::endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement