Help me write a C program that exchanges a string of letters to another one

Status
Not open for further replies.

vkekk

Full Member level 3
Joined
Mar 30, 2007
Messages
159
Helped
5
Reputation
10
Reaction score
4
Trophy points
1,298
Activity points
2,211
How to write the below problem in C language...

* The forum is going on and administartor find that some people use abusing or
bad lnaguage in discussion.so he decided that when he uses such language it
was replacedc with beap.

like
some string is given and it contain word idiot and bla bla ba....
you have to replace the word with ###

the word is listed in some look up table.
in Max_list_word

I think u got idea.


thanks in advance.......
 

Re: program in C ....

vkekk,

C standard library <strings.h> have several APIs to handle strings...

+++
 

    vkekk

    Points: 2
    Helpful Answer Positive Rating
Re: program in C ....

Iam not getting your point. Can u please give few algorithm steps to understand the logic of the problem. thanks in advance
 

program in C ....

It is like pattern matching.Read the string from the forum, compare the string with you list and when u have match replace them with ###. It is String manipulation.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…