473,399 Members | 3,656 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Sentence input and replacing

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
4 1786

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
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
Sidhu wrote:
[statement of homework problem]
Please send me the program.


Please send me the money first.

Jun 17 '06 #4
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Christopher R. Barry | last post by:
I need to search and replace multiple words in one pass of an input stream or string. For example, given the input: "The quick brown fox jumped over the lazy dog's back" and given the...
1
by: rdlauer | last post by:
I've just run into a strange problem with IE 6 and I'm wondering if anyone else has seen the same: On my form I have a hidden field that contains the HTML for a series of checkboxes: <input...
10
by: Sidhu | last post by:
Hoe to relplace the word in sentence? Can any one send program?
9
by: Prakash Singh Bhakuni | last post by:
am replacing the default "Browse..." button for input type=file. This works fine except that the form will only submit after the SUBMIT button is clicked twice. Any ideas on why this is happening...
10
by: ahoway | last post by:
I am having problems entering a sentence for translating into pig latin. It is set up now to read the entire sentence as one word. I would like to know how to look at each word in the sentence so...
1
by: ghost | last post by:
basically, i ask user to input a sentence or a word, and i want to know how to printout the charater that appear the most often in the word or sentences, and how many times it actually appears in a...
3
by: dalearyous | last post by:
ok basically i need to write a program that will replace normal words in a sentence with pirate words. the trick is it needs to be able to take two word phrases. i went about this two different ways:...
4
by: wohast | last post by:
Hi, I'm stuck at the very beginning of my current assignment. I just need a little help getting started, and then I know how to do everything else. ask user: "Please enter your name followed by...
2
by: poolboi | last post by:
hi all, if i got a string say i feel like going to swim today if i have input say "swim" and i wanna compare it with the sentence above, it will return true and go on to the rest of the...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.