Thread: float to int 2

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    The Artful Lurker Deckard's Avatar
    Join Date
    Jan 2002
    Posts
    633
    Your variables for gallons, quarts, pints, and cups are not always given a value before you print them.

    -----

    Bonus hint:
    Code:
    if ( expr )
       statement;
       statement;
    is not the same as
    Code:
    if ( expr )
    {
       statement;
       statement;
    }
    Last edited by Deckard; 08-14-2005 at 04:35 PM. Reason: Bonus hint
    Jason Deckard

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 48
    Last Post: 09-26-2008, 03:45 AM
  2. memory leak
    By aruna1 in forum C++ Programming
    Replies: 3
    Last Post: 08-17-2008, 10:28 PM
  3. Code review
    By Elysia in forum C++ Programming
    Replies: 71
    Last Post: 05-13-2008, 09:42 PM
  4. Replies: 2
    Last Post: 03-24-2006, 08:36 PM
  5. My graphics library
    By stupid_mutt in forum C Programming
    Replies: 3
    Last Post: 11-26-2001, 06:05 PM