मराठी

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++)

Advertisements
Advertisements

प्रश्न

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<

उत्तर

fstream.h

string.h

shaalaa.com
Header File - fstream.h
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
2017-2018 (March) All India Set 4
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×