That's not the syntax you want.
If you're going to pass the time to the constructor, which currently you're not set up to do, then you'd lose the assignment operator and put the duration in the parenthesis. Currently what you'd want to do is just declare the objects and call your set_hour() method (which by the way is setting charge not hour).
You sleep through class? I'm going to be less tolerant with you because according to you, you being trained formally. There is no way your teacher is asking you to do this without atleast taking the basics of how to use objects.Code:
Open your book and read up on how to use your class functions.
If you missed the beginning of the class, then you'll really need to read the book as soon as you get it. Also get notes from a classmate. In the mean time, you can look at cprogramming.com and their tutorials also we can explain things here, but you'll have to ask specific questions otherwise we'd just be doing your work for you.
AHH I figured it out!!!
Thanks so much for your help....I am indebted to you for life!