this program is supposed to write the numbers in english( the way we really say them )...from 0-100...i've done it all but i keep getting this error so i've only posted the first half of my code cuz its so long...

>but why is there a black dot on my posts?
The black dot is there to let you know that you've posted to a thread.

>return ( "zero" ) ;//cannot return a string like this
Why not?

>strcmpi(string, '0'))!= 0
What purpose does using a nonstandard case insensative string comparison serve when case is irrelevant. The last time I checked, digits don't have upper and lower case.

Wolfpack if you're going to post code, make sure it's at least correct. If you put errors in that code on purpose, please think about why you're here bfore posting again. Also, the // comment is only valid in C99 or C++, most likely you don't have a compiler for the former and the latter is off topic for this forum.

I cringe at pointers as they are not my friend; however, if a real programmer would be so kind as to correct my usage, then this crud *might* work as a starting point though I'm not sure how you'd tell the difference between 10 and 1 0 in such a string of numbers now that I re-read your topic..

Please Prelude take the time to look at the last line of the post that I made.

Not everything is fixed to how it should be and I purposely did somethings the wrong way and just didn't do others because what fun is it for you to get the code completed and done for you.

I see no way that he could learn from getting code back that is perfect. I learn on the basis of getting a push from someone else and going back and fixing it myself. Part of programming is to know what is going on and what ways are better than others and the only way that you gain this is through experience which is gained by going back and fixing itself.

>Please Prelude take the time to look at the last line of the post that I made.
I did not miss that part of your post, but my comments still stand. Someone comes onto these forums looking for an answer to a question that supposedly they've been working on and couldn't figure out. The last thing they want to hear is "I'll make a few inaccurate comments about your code and leave fixing the errors up to you, enjoy!". I find such posts incredibly arrogant and rude.

>I see no way that he could learn from getting code back that is perfect.
Perhaps correct and working examples that are explained thoroughly as well as what was wrong with their code to begin with? I see no way that he could learn from being given back the same errors he couldn't fix so that he gets discouraged and quits.

>I learn on the basis of getting a push from someone else and going back and fixing it myself.
Not everyone is like you.

>Prelude, in your code above could you explain the role of memset?
It clears out the contents from previous calls to the function.

>Could you also explain the role of *ncomm in commarize and ncomm in word build.
It holds the number of commas. This is how I determined where to print certain qualifiers such as hundred, thousand and million. At the time I wrote this I determined that that approach would be simpler than counting digits.

On a side note, please don't reply to such old threads. If you have a question to me personally then please contact me via email or preferably by private message.