Like Tree4Likes
  • 4 Post By rags_to_riches

car pool savings calculator

This is a discussion on car pool savings calculator within the C++ Programming forums, part of the General Programming Boards category; never mind...

  1. #1
    Abo
    Abo is offline
    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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,506
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Abo
    Abo is offline
    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
    1,624
    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
    Abo
    Abo is offline
    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
    a_capitalist_story
    Join Date
    Dec 2007
    Posts
    2,650
    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, 01:44 PM

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