parking garage calculator help

This is a discussion on parking garage calculator help within the C++ Programming forums, part of the General Programming Boards category; thanks!...

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

    parking garage calculator help

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

  2. #2
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,074
    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,074
    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,074
    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, 05:18 PM
  3. garage simulation
    By rayrayj52 in forum C++ Programming
    Replies: 14
    Last Post: 11-03-2004, 02: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, 04:23 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21