Pre processor Program in C++

in #programming8 years ago (edited)

Program

A program is set of instruction given by user to computer to perform a specific task.

Supercomputer program, in depth intend or else process in lieu of solving a riddle by means of a computer; supplementary specifically, an unambiguous, well thought-out string of computational advice indispensable near attain such a solution.


Program Body

#include <iostream>
#define VAMP
using namespace std;

int main (){
#ifdef VAMP
cout<<"defined wolf"<<endl;
#else
cout<<"not defined"<<endl;
#endif
#undef VAMP
#ifndef VAMP
cout<<"woao it is defined"<<endl;
#else
cout<<"AHH??? not defined dud"<<endl;
#endif // VAMP
}

 Written in C++

Source

Learn C++ because

Since C++ is fairly lower level, the dialect is gigantic and you should deal with a considerable measure of complex things, for example, memory administration and that's only the tip of the iceberg. You additionally need to compose a considerable measure of code before you can get a working model in case you're anticipating building an application starting with no outside help. Since it will be hard to get a handle on how all highlights in C++ functions, you can without much of a stretch shoot yourself in the foot.When you completely get a handle on programming, all the diverse dialects are simply language structure, semantics, and usage. Capacities, factors, parameters, classes, calculations and information structures all make them thing in like manner: they aren't exceptional to a particular dialect. In fact, there are useful programming dialects and Object Oriented programming dialects (OOP), yet the fundamental standards are not in any way restricted to a particular dialect.


I hope you guys liked it!

Coin Marketplace

STEEM 0.04
TRX 0.33
JST 0.076
BTC 61973.24
ETH 1625.90
USDT 1.00
SBD 0.40