What do these preprocessors do and why they are needed ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What do these preprocessors do and why they are needed ?

#import, #line, #pragma region, #pragma endregion, #undef, #using

28th Aug 2018, 5:50 AM
King Sam
King Sam - avatar
2 Answers
+ 2
King Sam # pragma region to start a group of code and it should be followed by pragma endregion... undef is used to nullify effect of define using is used to have namespace into code #import is similar to include... but import is limited to Microsoft only.. you can use import in visual c++, not c++ standalone.
28th Aug 2018, 7:52 AM
Ketan Lalcheta
Ketan Lalcheta - avatar
28th Aug 2018, 9:40 AM
hinanawi
hinanawi - avatar