Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Replace numbers with words?

Replace numbers with words?

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++
28 Posts 11 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M MoboTech

    My prof. assigned it too me. I know this crap is hard. The first 2 assignment was a piece of cake, but the third I'm really stuck on. he never showed me how to convert number to words before.

    S Offline
    S Offline
    Shog9 0
    wrote on last edited by
    #19

    MoboTech wrote:

    I know this crap is hard.

    No it's not. And that's not an insult - it really isn't. You have a classic assignment - it shows up in the first couple of weeks in hundreds of textbooks and courses based on them. And you've been assigned it to teach you something. Of course you can just pull the answers off of a web site, but then what have you learned? And so i repeat, it's not hard. But if you don't spend the time learning from your course work, you'll find the hard tasks impossible when eventually you do encounter them. Just a fair warning...

    ----

    I don't care what you consider witty, but at least I do not blather on posting nonsense like Jim Crafton.

    -- Stringcheese, humbled by Crafton's ability to string together multiple sentences

    J 1 Reply Last reply
    0
    • M MoboTech

      If you look at my above post, I'm actually thanking the people that helped me. I've posted two threads here today, each has a post by toxcct and they were rude comments. But thanks any ways.

      E Offline
      E Offline
      Eytukan
      wrote on last edited by
      #20

      But he has done a lot of good works to help the beginners come up here. Even I'm one of them. So if you don't know someone completely, just don't comment seeing a few strong messages from them. Yeah he needs to be tough! expects so much of disciplines in the forum. Without him, I'm sure the forum would look a little degraded. He has certainly helped to filter out a lot of stupid questions. Getting his strong comment, one would be afraid to post a similar one next time. He wants the problem to be explained properly,but that doesn't mean that he is required to answer every question that he had asked to be proper. That would atleast help someone to understand the problem better and give a definite answer to it. So either ways he's helping the forum to keep a neat line. It's very unfortunate that you've just joined the forum and talking so rude against a senior member of the same. Anyway I wish you'd get the point and have a nice stay. Just f*ck off.:| -- modified at 10:45 Wednesday 26th September, 2007


      Jemmy : Deadline? Pfft, a real programmer eats deadlines for breakfast. :P Mark: I thought real programmers ignored deadlines :sigh: Best wishes to Rexx[^]

      1 Reply Last reply
      0
      • M MoboTech

        So what people say is actually true... French are asses! Your no help in this forum. I've got so many great helps from others and I thank you, but yours is below helpful. toxcct should be demoted. :laugh:

        E Offline
        E Offline
        Eytukan
        wrote on last edited by
        #21

        OMG! I missed to read this.Well then, you should ignore my previous message. That was meant for someone who shows respect for others. You need a stronger treatment. , Ok, read my previous message again.


        Jemmy : Deadline? Pfft, a real programmer eats deadlines for breakfast. :P Mark: I thought real programmers ignored deadlines :sigh: Best wishes to Rexx[^]

        1 Reply Last reply
        0
        • M MoboTech

          I'm beginning C++. When I put a year, it calculate a month and day (ex. 5 23) for a particular holiday. How do I convert these numbers into words. (ex. March Twenty Three) Am I suppose to use individual functions or if-else statement? How is it done? Thanks.

          J Offline
          J Offline
          Jeremy Falcon
          wrote on last edited by
          #22

          For months, do what NS17 mentioned. For the numbers, you can use this function I wrote many moons ago.... http://www.codeproject.com/string/numword.asp[^]

          Jeremy Falcon Oatmeal, It's What's for Dinner.[^]

          1 Reply Last reply
          0
          • M MoboTech

            So what people say is actually true... French are asses! Your no help in this forum. I've got so many great helps from others and I thank you, but yours is below helpful. toxcct should be demoted. :laugh:

            J Offline
            J Offline
            Jeremy Falcon
            wrote on last edited by
            #23

            MoboTech wrote:

            So what people say is actually true... French are asses! Your no help in this forum. I've got so many great helps from others and I thank you, but yours is below helpful. toxcct should be demoted.

            Oh, I'm sure you'll be getting a lot of help here in the future. :rolleyes: Really, don't get pissed off if we don't do your homework for you. I only posted my link because it was already there (you could try doing a search you know) and took me like two seconds. I wouldn't have gone out of my way for your homework either. And here's something funny, try COMMUNICATING with your professor about it. Maybe he'll give you pointers. I know it's crazy, but sometimes using your mouth for good works too.

            Jeremy Falcon Oatmeal, It's What's for Dinner.[^]

            1 Reply Last reply
            0
            • S Shog9 0

              MoboTech wrote:

              I know this crap is hard.

              No it's not. And that's not an insult - it really isn't. You have a classic assignment - it shows up in the first couple of weeks in hundreds of textbooks and courses based on them. And you've been assigned it to teach you something. Of course you can just pull the answers off of a web site, but then what have you learned? And so i repeat, it's not hard. But if you don't spend the time learning from your course work, you'll find the hard tasks impossible when eventually you do encounter them. Just a fair warning...

              ----

              I don't care what you consider witty, but at least I do not blather on posting nonsense like Jim Crafton.

              -- Stringcheese, humbled by Crafton's ability to string together multiple sentences

              J Offline
              J Offline
              Jeremy Falcon
              wrote on last edited by
              #24

              Shog9 wrote:

              You have a classic assignment - it shows up in the first couple of weeks in hundreds of textbooks and courses based on them.

              Except the solutions that show up in beginner texts usually suck and don't scale well. *cough* *cough* (plugging my poor, lonely article ;)).

              Jeremy Falcon Oatmeal, It's What's for Dinner.[^]

              S E 2 Replies Last reply
              0
              • J Jeremy Falcon

                Shog9 wrote:

                You have a classic assignment - it shows up in the first couple of weeks in hundreds of textbooks and courses based on them.

                Except the solutions that show up in beginner texts usually suck and don't scale well. *cough* *cough* (plugging my poor, lonely article ;)).

                Jeremy Falcon Oatmeal, It's What's for Dinner.[^]

                S Offline
                S Offline
                Shog9 0
                wrote on last edited by
                #25

                :D

                ----

                I don't care what you consider witty, but at least I do not blather on posting nonsense like Jim Crafton.

                -- Stringcheese, humbled by Crafton's ability to string together multiple sentences

                1 Reply Last reply
                0
                • J Jeremy Falcon

                  Shog9 wrote:

                  You have a classic assignment - it shows up in the first couple of weeks in hundreds of textbooks and courses based on them.

                  Except the solutions that show up in beginner texts usually suck and don't scale well. *cough* *cough* (plugging my poor, lonely article ;)).

                  Jeremy Falcon Oatmeal, It's What's for Dinner.[^]

                  E Offline
                  E Offline
                  El Corazon
                  wrote on last edited by
                  #26

                  Jeremy Falcon wrote:

                  plugging my poor, lonely article

                  at least you have you poor lonely article, I have a mention in yours, and that is it. After that I am just chopped liver. ;)

                  _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

                  J 1 Reply Last reply
                  0
                  • E El Corazon

                    Jeremy Falcon wrote:

                    plugging my poor, lonely article

                    at least you have you poor lonely article, I have a mention in yours, and that is it. After that I am just chopped liver. ;)

                    _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

                    J Offline
                    J Offline
                    Jeremy Falcon
                    wrote on last edited by
                    #27

                    El Corazon wrote:

                    After that I am just chopped liver.

                    Chopped liver with an honorable mention though. Wear that hat proud man. :-D

                    Jeremy Falcon Oatmeal, It's What's for Dinner.[^]

                    E 1 Reply Last reply
                    0
                    • J Jeremy Falcon

                      El Corazon wrote:

                      After that I am just chopped liver.

                      Chopped liver with an honorable mention though. Wear that hat proud man. :-D

                      Jeremy Falcon Oatmeal, It's What's for Dinner.[^]

                      E Offline
                      E Offline
                      El Corazon
                      wrote on last edited by
                      #28

                      Jeremy Falcon wrote:

                      Chopped liver with an honorable mention though.

                      okay, chopped liver with the occasional good idea. :rolleyes:

                      _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups