Converting a word to ICAO

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;
}
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.
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.
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.
Sorry for not responding to here for so long, but I actually managed to figure it out.
Topic archived. No new replies allowed.