Hello Sajha users,
I have seen many computer experts here, and I am hoping to get some help from them. It is very urgent. I am not a computer major but had to take some computer (C++) classes, and I dont know how to do these programs.
Can you guys please help me to pass this course. I have deadlines for these today by 6 pm.
Program 1
Write a program that
-
allows you to write stats of a monster and save it to a file.
-
Allows you to open the file and read the stats of the monster. (Print what was read onto the screen.)
Program 2
Create a class that has a constructor and a destructor. In the constructor print "Object Created". In the destructor print "Object Destroyed".
First create the object locally.
Second, create the object dynamically. Then delete it.
Use the debugger to see when the destructor and constructor are called.
I would appreciate your help guys.
Thank you,
Udeshya