By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,330 Members | 1,590 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,330 IT Pros & Developers. It's quick & easy.

Sentence input and replacing

P: n/a
I've written a program to get a sentence input [as string array i.e
using char eg.char d[40]]. I also got the word to be replaced and the
word that should be replaced. But i cant repalce the word. Sometimes it
is partly replaced. Sometimes some unwanted symbols are comming. Please
send me the program.

Jun 17 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a

Sidhu wrote:
I've written a program to get a sentence input [as string array i.e
using char eg.char d[40]]. I also got the word to be replaced and the
word that should be replaced. But i cant repalce the word. Sometimes it
is partly replaced. Sometimes some unwanted symbols are comming. Please
send me the program.


Actually it works the opposite way ; you post the programme here and
we make comments and suggestions.

Jun 17 '06 #2

P: n/a
Hi

Sidhu wrote:
I've written a program to get a sentence input [as string array i.e
using char eg.char d[40]]. I also got the word to be replaced and the
word that should be replaced. But i cant repalce the word. Sometimes it
is partly replaced. Sometimes some unwanted symbols are comming. Please
send me the program.


You can download it yourself:
http://www.gnu.org/software/sed/

Markus
Jun 17 '06 #3

P: n/a
Sidhu wrote:
[statement of homework problem]
Please send me the program.


Please send me the money first.

Jun 17 '06 #4

P: n/a
"Sidhu" <si********@gmail.com> writes:
I've written a program to get a sentence input [as string array i.e
using char eg.char d[40]]. I also got the word to be replaced and the
word that should be replaced. But i cant repalce the word. Sometimes it
is partly replaced. Sometimes some unwanted symbols are comming. Please
send me the program.


Why would we want to do that? We're not going to do your homework for
you.

Actually, we might be willing if you give us your instructor's e-mail
address, so we can submit it directly. Let us know whether you want
us to mention your name in the e-mail.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Jun 17 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.