how do I print a "%" to a file with out interfering with stuff line %s for a string

This is a discussion on how do I print a "%" to a file with out interfering with stuff line %s for a string within the C Programming forums, part of the General Programming Boards category; how do I print a "%" to a file with out interfering with stuff line %s for a string...

  1. #1
    Registered User
    Join Date
    Jun 2003
    Posts
    12

    how do I print a "%" to a file with out interfering with stuff line %s for a string

    how do I print a "%" to a file with out interfering with stuff line %s for a string

  2. #2
    plaYa
    Guest
    do \%.

  3. #3
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    Actually, you use %% to output a percent sign.
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. disposing error
    By dropper166 in forum C# Programming
    Replies: 2
    Last Post: 03-30-2009, 11:53 PM
  2. Replies: 8
    Last Post: 04-25-2008, 02:45 PM
  3. Can we have vector of vector?
    By ketu1 in forum C++ Programming
    Replies: 24
    Last Post: 01-03-2008, 04:02 AM
  4. Possible circular definition with singleton objects
    By techrolla in forum C++ Programming
    Replies: 3
    Last Post: 12-26-2004, 09:46 AM

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