• aMockTie@lemmy.world
    link
    fedilink
    arrow-up
    43
    ·
    3 天前

    Statements that start with # in C/C++ are known as preprocessor directives, that is, they are executed before compilation begins. OP has used a #define which will replace any instance of A (IF(x)) with B (while (x)) in the code.

    So the IF statement is really just a while statement.