Answer to Question #72110 in C++ for Dhvani
Example: Content of first_file – “I am going to buy an umbrella”
Output in second_file.txt – I am an umbrella
std::cout << "Can\'t open input file" << std::endl;
std::string s = "";
inputFile >> s;
outputFile << words.at(0) << " " << words.at(1) << " " << words.at(words.size() - 2) << " "
<< words.at(words.size() - 1) << std::endl;
Need a fast expert's response?Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!