Saved Bookmarks
| 1. |
The following C++ code during compilation reports errors as follows:Error; ‘ofstream’ not declaredError; ‘strupr’ not declaredError; ‘strcat’ not declaredError; ‘FIN’ not declaredWrite 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; } |
|
Answer» Correct header files- #include → ofstream #include → strupr, strcat |
|