Ok, sorry to resurrect this issue once more.
I've got numbers to words working. Now, what I have to do, is convert numbers entered into stdin, into their word equivalents! I have spent a few weeks...
Type: Posts; User: denizengt
Ok, sorry to resurrect this issue once more.
I've got numbers to words working. Now, what I have to do, is convert numbers entered into stdin, into their word equivalents! I have spent a few weeks...
Here's what I have so far
#!/bin/csh -f
set params = $argv[1-]
set argc = $#argv
set lsval = `ls`
Ok, recenty I've been trying to automate tasks. It was recommended that I learn CSH. So off I go, and learn some simple CSH, but I don't get how to do the following task.
I'm trying to create a...
Converting a floating point number to hexadecimal
I'm trying to convert a floating point number (single precision). I want to show it's bit representation in hexadecimal, but I'm unsure on how to...
Basically I need a better emvironment for coding in than Win32. Any other reasons for dropping Linux for FreeBSD?
Thanks everyone, I managed to bypass KDE, and could get it to work by installing a bus mouse driver.
The OS is blisteringly fast, as I expected. The only problem I have, using KDE2, is that I...
How can I bypass the window manager loading at startup?
I decided to try a Linux system on this decaying machine.
I've installed Debian, v2.2 Linux Kernel and a system of utilities, X Windows, KDM, KDE.
When the window manager boots, it's all very...
I have a string read from the KB, say string[].
I have word lists:
static char *dictSpace[] =
{"One ","Two ","Three ","Four ","Five ","Six ","Seven ","Eight ","Nine ", "Ten ","Eleven...
Ok, so I managed to do it! Converting numbers to words that is. Thanks everyone
I've run into another problem.
I have a number entered as words and stored in a string. I want to convert it...
Prelude, in your code above could you explain the role of memset?
Could you also explain the role of *ncomm in commarize and ncomm in word build.
The commarize code is a little confusing, once...
I'm still unsure on how to tackle this problem
I've defined my struct similar to how Prelude did before.
Now, let's assume I am in "word to number mode". I get a string using gets(string)
I...
struct digit {
const char *word[9];
int number[10];
};
struct digit base[] = {
/* Ones */
{
{"one", "two", "three", ..., "nine"},
{1,2,3, ... , 9},
I use RHIDE for C and MS's simple edit app. I'm pretty sure I haven't changed anything, but the DOS box now only has black and white (and grey) as colours - like it has changed some colour mode..
...
Ok, there's a question I've got to ask.
I don't think that the way I am trying to do it, ie, with functions, is perhaps the best method to do it. What I want to do, is convert numbers into words,...
Pointers! I can recognize pointers, but I'm not sure why one would use them over say, using variables for the purpose (especially in the context of arrays).
What are the benefits of using pointers...
I must admit, I found those two links incredibly confusing.
Ok DavT, thank you for replying. Apologies to everyone on the size!
#include <stdio.h>
#include <strings.h>
void hasTrillions(char);
void hasBillions(char);
void...
Hello everyone.
I'm new to programming in general, and I'm wondering if you can help me.
Does anyone have a solution to a problem where you are given a number, lets say, 1645030, and have to...