No products in the cart.

) A text file named MATTER.TXT …

CBSE, JEE, NEET, CUET

CBSE, JEE, NEET, CUET

Question Bank, Mock Tests, Exam Papers

NCERT Solutions, Sample Papers, Notes, Videos

) A text file named MATTER.TXT contains some text, which needs to be displayed such that every next character is separated by a symbol ‘#’. Write a function definition for HashDisplay() in C++ that would display the entire content of the file MATTER.TXT in the desired format. 3 Example : If the file MATTER.TXT has the following content stored in it : THE WORLD IS ROUND The function HashDisplay() should display the following content : T#H#E# #W#O#R#L#D# #I#S# #R#O#U#N#D#
  • 3 answers

Vidushi Shukla 5 years, 7 months ago

I searched this ques and got the answer but its hard to write so u can search on google - write a function hashdisplay and u will get the ans from shaalaa.com

Vidushi Shukla 5 years, 7 months ago

Then cout<< ch <<#

Snehashish Datta 5 years, 7 months ago

void hashdisplay() { Fstream ob; char ch; ob.open("matter.txt",ios::in|ios::out); while(ob.get(ch)) { cout<<ch<<"#"; } ob.close(); }
http://mycbseguide.com/examin8/

Related Questions

What is mean by buffering in file handling?
  • 1 answers
What are called tokens
  • 2 answers

myCBSEguide App

myCBSEguide

Trusted by 1 Crore+ Students

Test Generator

Test Generator

Create papers online. It's FREE.

CUET Mock Tests

CUET Mock Tests

75,000+ questions to practice only on myCBSEguide app

Download myCBSEguide App