Thread: parking garage calculator help

  1. #1
    Registered User
    Join Date
    Feb 2006
    Posts
    16

    parking garage calculator help

    thanks!
    Last edited by vgame64; 02-15-2006 at 07:09 PM.

  2. #2
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079
    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).
    Sent from my iPadŽ

  3. #3
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079
    Code:
    parking set_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.

    Open your book and read up on how to use your class functions.
    Sent from my iPadŽ

  4. #4
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079
    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.
    Sent from my iPadŽ

  5. #5
    Registered User
    Join Date
    Feb 2006
    Posts
    16
    AHH I figured it out!!!

    Thanks so much for your help....I am indebted to you for life!

    ^_^






Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 3
    Last Post: 04-26-2009, 08:54 AM
  2. calculating garage charges
    By nynicue in forum C Programming
    Replies: 7
    Last Post: 02-22-2009, 06:18 PM
  3. garage simulation
    By rayrayj52 in forum C++ Programming
    Replies: 14
    Last Post: 11-03-2004, 03:49 PM
  4. hosting vs parking?
    By afreedboy in forum Tech Board
    Replies: 5
    Last Post: 09-28-2004, 06:17 AM
  5. Newbie Parking
    By Gamemonkey in forum Linux Programming
    Replies: 4
    Last Post: 12-29-2003, 05:23 PM