phone number to words - Printable Version +- QB64 Phoenix Edition (https://qb64phoenix.com/forum) +-- Forum: Chatting and Socializing (https://qb64phoenix.com/forum/forumdisplay.php?fid=11) +--- Forum: General Discussion (https://qb64phoenix.com/forum/forumdisplay.php?fid=2) +--- Thread: phone number to words (/showthread.php?tid=2839) Pages:
1
2
|
RE: phone number to words - bplus - 07-02-2024 reply to @Pete last reply pretty sure the method i outlined above is quicker, the file is ready already in reply #4 the flaw of this idea is that there are no numbers assigned for 0 and 1 BTW here is code i used to make the file: Code: (Select All) _Title "Make 7 letter Phone Words txt file" RE: phone number to words - Pete - 07-02-2024 I avoid making recursive calls within a sub to avoid stack space issues. Those were a big deal in QB, but not so much in QB64. I would assign a variable, exit the sub, and the next statement would determine to either re-loop the subroutine or move on. Code: (Select All)
Pete RE: phone number to words - bplus - 07-02-2024 (07-02-2024, 08:05 PM)Pete Wrote: I avoid making recursive calls within a sub to avoid stack space issues. Those were a big deal in QB, but not so much in QB64. I would assign a variable, exit the sub, and the next statement would determine to either re-loop the subroutine or move on. ah took me a moment to figure what was recursive, oh the QuickSort. That one has been dependable for years, unless miss-coded there is no danger of a runaway stack space blowing out memory, it needs less and less space on each call. on average it divides in half each time and from math we know the limit of the sum of halfing is 2, or twice the array size. Ha just made that up, sounds pretty good right? it may be actually correct Zenos Tortoise and Hare Paradox is not. RE: phone number to words - Pete - 07-03-2024 OMG. I guess old age is setting in. I haven't coded anything in 2-months and already I've forgotten how to make a subroutine call. Now edited. Oh well, at least I'm retired and not operating a school bus or worse yet, pretending to run the country. Oh, and I have a cold... AHHHCHOOOO. Pete |