subject

Write a C++ program that reads sentences, one by one, from a file “sentences. txt”. Maximum length of a sentence can be 250. Search for “new” word in each sentence. If found, create a file with the name “new. txt” and stores that sentence in that created file. Note: For searching new word you will create a function in which you will pass sentence and function will return true and false.

Example
sentences. txt
I am going to school.
They are buying a new car.
New year 2019 eve was great.
I got to go.
He is leaving his dog.
She is running after the bus.
Artificial intelligence and 5G has created many jobs.
After executing the program,
new. txt
They are buying a new car.
New year 2019 eve was great.

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 17:30, bl88676
1. before plugging in a new device to a computer you should unplug all other devices turn off the computer turn on the computer 2. many of the maintenance tools for a computer can be found in the control panel under administrative tools display personalization
Answers: 1
image
Computers and Technology, 22.06.2019 20:00, random286
How is the number 372 written when expanded out to place values in the base 8 (octal) number system? a. 2 x 4 + 3 x 2 + 4 x 1 b. 3 x 64 + 7 x 8 + 2 x 1 c. 3 x 8 + 7 x 7 + 2 x 6 d. 3 x 100 + 7 x 10 + 2 x 1
Answers: 1
image
Computers and Technology, 24.06.2019 14:00, youcandoit13
In simple terms, how would you define a protocol?
Answers: 2
image
Computers and Technology, 24.06.2019 16:30, laureanogabriel
What is the item which could be matched with a statement below? software installed on a computer that produces pop-up ads using your browser an example of social engineering malware loads itself before the os boot is complete type of spyware that tracks your keystrokes, including passwords windows key + l the practice of tricking people into giving out private information or allowing unsafe programs into the network or computer when someone who is unauthorized follows the employee through a secured entrance to a room or building a type of malware that tricks you into opening it by substituting itself for a legitimate program a computer that has been hacked, and the hacker is using the computer to run repetitive software in the background without the user's knowledge an infestation designed to copy itself repeatedly to memory, on drive space, or on a network
Answers: 1
You know the right answer?
Write a C++ program that reads sentences, one by one, from a file “sentences. txt”. Maximum length o...

Questions in other subjects:

Konu
Mathematics, 19.05.2021 02:30
Konu
Mathematics, 19.05.2021 02:30