Advertisement Remove all ads

The Following C++ Code During Compilation Reports Errors as Follows: Write the Names of the Correct Header Files, Which Must Be Included to Compile the Code Successfully - Computer Science (C++)

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()
{
   of stream FIN ("WISH. TXT") ;
   char TEXT2[]="good day";
   char TEXTl []="John! ";
   
   strupr(TEXT2);
   strcat(TEXTl , TEXT2);
   FIN<<TEXTl<
Advertisement Remove all ads

Solution

fstream.h

string.h

Concept: Header File - fstream.h
  Is there an error in this question or solution?
Advertisement Remove all ads
Advertisement Remove all ads
Advertisement Remove all ads
Share
Notifications

View all notifications


      Forgot password?
View in app×