Create a class 'st_rc' consisting of the following data :
Student's Name
Student's Roll Number
Student's Marks in three subjects.
Now use this class to enter record of five students in a file 'record.txt' by using some imaginary data .Now find the record of a particular roll no. from the file as desired by the user . If the roll no. doesn't exist then a new record has to be inserted for that roll no. by using the data given by the user. The new record should be inserted at second position(after the first record) in the file.
i wrote the following code for this problem but when i open the file record.txt after executing this code,it shows several unusual characters.also if i use getline to enter name, code does not work properly.plz help!