e = ((a < d) ? (a++) : (a = d))
//advance if else condition
You can use '#' sign to get exact name of an argument passed to a macro:
#define what_is(x) cerr << #x << " is " << x << endl;
int variable = 376;
what_is(variable);
// prints "variable is 376"
Code Example |
---|
Cpp :: nth fibonacci number |
Cpp :: Array Rotate in c++ |
Cpp :: Maximum element in a map c++ |
Cpp :: c++ unordered_map initialize new value |
Cpp :: How to see gateway on linux |
Cpp :: print all subsequences |
Cpp :: gcd in cpp |
Cpp :: calling by reference c++ |
Cpp :: binary to decimal online converter |
Cpp :: Decision Making in C / C++ (if , if..else, Nested if, if-else-if ) |
Cpp :: c++ square and multiply algorithm |
Cpp :: lcm in c++ |
Cpp :: enter items in array until enter is pressed c++ |
Cpp :: prefix using stack |
Cpp :: c++ *agrs |
Cpp :: check if a string is a prefix of another c++ |
Cpp :: ejemplo |
Cpp :: copy file to vector c++ |
Cpp :: Access Elements in C++ Array |
Cpp :: c++ localtime unsafe |
Cpp :: c++ dynamic array |
Cpp :: gcd multi num |
Cpp :: how to type cast quotient of two integers to double with c++ |
Cpp :: Nested ternary operator C++ |
Cpp :: c++ vector add scalar |
Cpp :: code::block uncomment |
Cpp :: set(W) |
Cpp :: sort c++ stl |
Cpp :: avl tree c++ |
Cpp :: generate random ints and floats |