Join 136,909 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,745 people online right now. Registration is fast and FREE... Join Now!
I'm sorta new to C++ programming. I've only studied it for a few weeks, and im have trouble understanding define#, i dont understand why you would use it, when to use it and all that. please someone help me.
While there are a few uses for the define directive, the most common is to assign a meaningful name to a constant being used in your program, or often to provide a meaningful name for a macro that will be run multiple times during your program.