The following C++ code during compilation reports errors as follows:
Error; ‘ofstream’ not declared
Error; ‘strupr’ not declared
Error; ‘strcat’ not declared
Error; ‘FIN’ not declared
Write the names of the correct header files, which must be included to compile the code successfully:
void main ()
{
ofstream FIN ("WISH. TXT");
char TEXT2 [] = "good day";
char TEXT1 []= "John!";
strupr (TEXT2);
strcat(TEST1, TEXT2);
FIN << TEXT1 << endl;
}