#define
The #define directive assigns the given value to the specified name. All subsequent occurrences of the name are replaced by the value.
#define name value
-
name
-
Name to be defined. This value is any combination of letters, digits, and punctuation that is valid for the C/C++ preprocessor.
-
value
-
Integer, character string, or line of text.
Example
This example assigns values to the names NONZERO and USERCLASS:
#define NONZERO 1
#define USERCLASS "MyControlClass"
Related topics
Opinia
https://aka.ms/ContentUserFeedback.
Dostępne już wkrótce: W 2024 r. będziemy stopniowo wycofywać zgłoszenia z serwisu GitHub jako mechanizm przesyłania opinii na temat zawartości i zastępować go nowym systemem opinii. Aby uzyskać więcej informacji, sprawdź:Prześlij i wyświetl opinię dla