Thread: Number on a number

  1. #31
    Registered User
    Join Date
    Mar 2008
    Posts
    34
    omg...it worked... explain me this, cause i've not understood, break will break the condition of if, and will pass to next m=m/10? or it will break the do while and goes to do the m=m-1; and the do while again?

  2. #32
    Registered User
    Join Date
    Mar 2008
    Posts
    34
    ah, ok...is to terminate and exit a loop...thks.

  3. #33
    Registered User
    Join Date
    Mar 2008
    Posts
    34
    Anyone knows how to do a simple Run Lenght Encoding program?

  4. #34
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    Why not start here? http://en.wikipedia.org/wiki/Run-length_encoding

    (And next time start a new thread, perhaps.)
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help getting program print out the digit in words
    By cosmiccomputing in forum C Programming
    Replies: 26
    Last Post: 04-24-2008, 08:28 AM
  2. Need help with this compiler error
    By Evangeline in forum C Programming
    Replies: 7
    Last Post: 04-05-2008, 09:27 AM
  3. Prime number program problem
    By Guti14 in forum C Programming
    Replies: 11
    Last Post: 08-06-2004, 04:25 AM
  4. parsing a number
    By juancardenas in forum C Programming
    Replies: 1
    Last Post: 02-19-2003, 01:10 PM
  5. Random Number problem in number guessing game...
    By -leech- in forum Windows Programming
    Replies: 8
    Last Post: 01-15-2002, 05:00 PM