main.cpp
1 /* ************************************************************************** */ 2 /* */ 3 /* ::: :::::::: */ 4 /* main.cpp :+: :+: :+: */ 5 /* +:+ +:+ +:+ */ 6 /* By: gychoi <gychoi@student.42seoul.kr> +#+ +:+ +#+ */ 7 /* +#+#+#+#+#+ +#+ */ 8 /* Created: 2023/12/18 03:29:51 by gychoi #+# #+# */ 9 /* Updated: 2023/12/21 17:16:01 by gychoi ### ########.fr */ 10 /* */ 11 /* ************************************************************************** */ 12 13 #include "Base.hpp" 14 15 int main() 16 { 17 Base* p = generate(); 18 19 try 20 { 21 identify(p); 22 identify(*p); 23 } 24 catch (std::exception& e) 25 { 26 std::cout << e.what() << std::endl; 27 } 28 29 delete p; 30 31 return 0; 32 }