#include expects filename

Introduction


#include expects filename

Demo


Description


Preprocessor  directive #include expects “FILENAME” or <FILENAME>

Example


Example 1



 

Output


Example 2


Output


 

 

Causes


Missing filename after directive #include.
Directive #include require a filename.

How to fix it ?


Put the filename in double quotes or angle brackets.

Syntax


#include <filename>
or
#include "filename"

Notes


See also



 

Subscribe to our youtube channel  for more videos.errordog


No comments to show.