I have to write the C++ declaration for a atruct calledTstudent that will store the following data:<br>course 3 digit number (stored as a string)<br>forename 20 characters<br>surname 20 characters<br>gender enumerated type ( male, female)<br>age integer<br><br>Then I have to create an array of Tstudent that will hold the data on 10 students.Finally i have to write the code for a function to write the contents of the array to a file called a:\student.dat<br><br><br>That is what I have to do.I have started to write the code but I am not sure if it is correct.That is what I have done:<br><br>struct Tstudent{<br> int course[3];<br> char forename[20];<br> char surname[20];<br> enum gender {male, female};<br> gender m,f;<br> int age;<br>};<br><br>Then for the creation of the array I have done the<br> following :<br><br>double Tstudent[10];<br><br>That is all I have tried to do.Please help me complete my task.<br>Thank you!