Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need help with fixing my codes and also I have written TODO in my utils.cpp file. My files are Dinosaur.cpp , Dinosaur.hpp , homework01.cpp
I need help with fixing my codes and also I have written "TODO" in my utils.cpp file.
tha "Dinosaur.hpp c. homework01.cpp c. utils.cpp Dinosaur.cpp "Dinosaur.hpp c c homework01.cpp c utils.cpp hh utils.hpp virtuel voic roar() cons \{ \} std:s cout "Roar! I am the protector" std: iendl; \}; vircual nStegosaurus(); class Brachiosaurus : public Dinosaur \{ public: Brachiosaurus (). Dinosaur (6,0){} varcuat void roar() cons \{ \} std: : cout "Roar! I will kill Dinosaur" std: :endl; virtual Brachiosaurus(); 3; class Chicken : public Dinosaurf peblic: Chicken() : Dinosaur (6,6){} virtual void roar() const \} std: : cout "OMG! I am the weakest.... 3; viritul Chicken(); Minclede "Stegosaurus. hpp" "include "Dinosaur.hpp" "wincluce "utils, hpp"| Finclude Finclude using nemespace std; int main(){ I/cout "Hello "; srand(time(nuilpci)); const in' NUM_DINOS =4; Dinosaur* competitors [NUM_DINOS] \{ gew Tyrannosaurus(), hew Stegosaurus(), 3; new Brachiosaurus(), nov: Chicken() welcome(competitors); display (competitors, NUM_DINOS); conquer (competitors, NUM_DINOS); display (competitors, NUM_DINOS); victoryMessage(competitors, NUM_DINOS); for ( inti=0;i My files are "Dinosaur.cpp" , "Dinosaur.hpp" , "homework01.cpp" , "utils.cpp" and "utils.hpp".
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started