CBSE Computer Science - Revision Tour(Solved) CBSE Guess > eBooks > Class XII > CBSE Computer Science Data File Handling Solved Revision Tour By Mr. Ravi Kiran COMPUTER SCIENCE DATA FILE HANDLING DELHI : 2007 4.a) Observe the program segment given below carefully, and answer the question that follows:
If the function AllocateMarks( ) is supposed to Allocate Marks for the records in the file MARKS.DAT based on their value of the member TimeTaken. Write C++ statements for the statement 1 and statement 2, where, statement 1 is required to position the file write pointer to an appropriate place in the file and statement 2 is to perform the write operation with the modified record. 4.b) Write a function in C++ to print the count of the word is as an independent word in a text file DIALOGUE.TXT. For example,if the content of the file DIALOGUE.TXT is This is his book. Is this book good ? Then the output of the program should be . 2. Solution: Ans) Dear Children, try this answer.
CBSE Computer Science Solved Revision Tour By Mr. Ravi Kiran ( [email protected] ) |
|