For your first question, when I tried to compile this code
1 2 3 4 5 6 7 8 9 10 11 12 13 14
1- Is it possible to define a #define using lots of defines ?
Example:
#include <iostream>
#define c_a a
#define c_b b
#define CONDITION c_ac_b
int main()
{
CONDITION
}
// str must be converted to a code.
It gave me an error saying
error: 'c_ac_b' was not declared in this scope
Which suggests that #define CONDITION c_ac_b doesn't define CONDITION as ab
EDIT:
But when I modified the program to
1 2 3 4 5 6 7 8 9 10 11
#include <iostream>
#define c_a a
#define c_b b
#define CONDITION c_a
int main()
{
CONDITION
}
The error this time said
error: 'a' was not declared in this scope|
Meaning that CONDITION was defined to a instead of c_a