Thread: Question about printing a variable???

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Feb 2006
    Location
    North Liberty, IA
    Posts
    67

    Question about printing a variable???

    Forgive me for being vague in this question. I'm trying to help a co-worker out with a problem he's got. So from what I understand:

    We have a variable of type double that is declared and initialized outside of a loop. We enter the loop and the variable is then calculated with some other variables and printed to a column in a spreadsheet. Each time through the loop, the variable is re-calculated and again printed to the spreadsheet with a new value. What we would like to do is quit printing the variable and instead leave the cell blank once the variable reaches a certain value. I can't quite figure out how to do this. Even though the variable has a value, how do you print a blank, and still maintain the same loop conditions to print the variable if it hasn't reached the "no print" value?

    Once again, sorry if this is vague. Any help would be greatly appreciated.
    Last edited by Hoser83; 03-31-2006 at 01:40 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need some help...
    By darkconvoy in forum C Programming
    Replies: 32
    Last Post: 04-29-2008, 03:33 PM
  2. Replies: 18
    Last Post: 12-31-2005, 01:56 PM
  3. easy variable question
    By Gav D in forum C Programming
    Replies: 2
    Last Post: 08-28-2003, 06:40 AM
  4. question on printing
    By Bug_less in forum C++ Programming
    Replies: 1
    Last Post: 07-17-2002, 05:31 PM
  5. Need help
    By awkeller in forum C Programming
    Replies: 2
    Last Post: 12-09-2001, 03:02 PM