View Single Post
Old 10-22-2004, 02:31 AM   #1 (permalink)
Spooky
Registered User
 
Spooky's Avatar
 
Join Date: Oct 2004
Posts: 1
Spooky is on a distinguished road
Simple C program HELP!

This can be a very VERY simple little function in c for the most of you but i'am a c beginner and i need to get this working and i don't have much time to do it...

I need to insert an '-' (MINUS) before a sequence of lowercase letters that ends with a lowercase vowel.

ex: in the console i do ...
./program
asdfasda&hasssda7GUASDA8o9sssasdas

and the result is ->

-asdfasda&-hasssda7GUASDA8-o9sssasdas

i have to do this without no pointers ... just simple arrays and strings programing.
just one more thing, this must be a function that is called in the main and in there it must have a printf(...) that gives me the result i need... something like this

in main():

function(input,output);
printf(output);

(just for example)

if you have any ideias how can i do this, plz help...
if you could send some code examples it would be very nice

thanks in advance for the time.

Spooky.

Last edited by Spooky; 10-22-2004 at 03:18 AM.
Spooky is offline   Reply With Quote