[try Beta version]
Not logged in

 
Converting a word to ICAO

Nov 15, 2010 at 11:14pm
I need to create a function that accepts a word from the user and then converts it to ICAO.

Ex) If the user types in "yes", the output shows "Yankee Echo Sierra".

So far all I achieved was creating a bunch of uninitialized variables, so I started over with a totally clean slate. I've actually been working on this since Saturday (woo hoo, look at me go) and I can NOT create something that works, so I'm asking for some help.

I'm pretty sure it has to be a void function, along the lines of

1
2
3
4
5
6
void ICAO (content here)
{
content here

return;
}
Nov 16, 2010 at 12:01am
You'll need to put in a bit more effort than that...

What you want is probably to read in a string, then iterate over it, reading each letter and outputting the corresponding word.
Nov 16, 2010 at 12:02am
I'm actually working on it this whole time. I'm not just sitting and waiting on responses. I don't expect people to do my work for me. I'm just looking for some pointers I guess you could call them.

Thank you for your response.
Nov 16, 2010 at 1:28am
It might help if you posted some of your code or pseudo-code to convince us that you've been working.

Anyway, sounds pretty simple. Make an array of words for each letter, then do what Zhuge said.
Nov 16, 2010 at 1:53am
Sorry for not responding to here for so long, but I actually managed to figure it out.
Topic archived. No new replies allowed.