+ 5
I want exsmple for each preprocessor...
Preprocessor Directives c The C preprocessor uses the # directives to make substitutions in program source code before compilation. For example, the line #include <stdio.h> is replaced by the contents of the stdio.h header file before a program is compiled. Preprocessor directives and their uses: #include Including header files. #define, #undef Defining and undefining macros. #ifdef, #ifndef, #if, #else, #elif, #endif Conditional compilation. #pragma Implementation and compiler specific. #error, #warning Output an error or warning message An error halts compilation.
6 Antworten
+ 3
statements starting with # are preprocessor directives
To include a header file we use
#include<header.h>
It won't work without #, it is a part of the statement
+ 2
I'm sorry, but you'll need to search by yourself on internet, because that's too much to type here. 😑
+ 1
int[] items;
// initialization
forEach(int i in item) {
cout << i
}
+ 1
What does mean "preprocessor"?
0
i can't understand..
0
okie.... sure..tanq...