Thread: car pool savings calculator

  1. #1
    Registered User
    Join Date
    Sep 2011
    Posts
    3

    car pool savings calculator

    never mind
    Last edited by Abo; 09-17-2011 at 02:30 PM.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Well post your code - saying it "compiles" doesn't tell us much.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Sep 2011
    Posts
    3
    I have posted a portion. thanks in advance for any help.

  4. #4
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    2,739
    From what I understand, number1 and number2 are integers, right? Well, number1/number2 results in integer division, discarding the fractional part.

    EDIT: Oh, and please use code tags.
    Devoted my life to programming...

  5. #5
    Registered User
    Join Date
    Sep 2011
    Posts
    3
    You know I am so new to this I have no idea what code tags are.

  6. #6
    Registered User
    Join Date
    Dec 2007
    Posts
    2,675
    If you read the big sticky post at the top of the forum:

    Posting code? Read this first!

    you *would* have an idea!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. savings with statics c++
    By kokoro in forum C++ Programming
    Replies: 3
    Last Post: 03-22-2010, 08:22 PM
  2. getting local time without daylight savings
    By underthesun in forum C Programming
    Replies: 5
    Last Post: 06-30-2009, 09:33 AM
  3. Thread pool
    By mdoland in forum C# Programming
    Replies: 3
    Last Post: 10-19-2007, 06:41 AM
  4. Daylight Savings Time
    By Thantos in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 04-04-2004, 04:47 PM
  5. [POLL] Bye, Bye Daylight Savings Time!
    By Cruxus in forum A Brief History of Cprogramming.com
    Replies: 12
    Last Post: 10-29-2001, 02:44 PM