Join date: Jun 3, 2022


Homemade Baby Food Toilet


A: Indeed, the code you have seen is a kind of Enumeration in C/C++. For a given data type e.g. Integer, long long, float and double this operation can be implemented in C and C++ using a function like: enum { FIRST, SECOND, THIRD } foo; which is just a declaration to allow two or more assignment to foo. The value of this kind of enumeration can be read as an index of the first value plus the number of following values. For example, in C++, you can read the enum definition above: auto x = FIRST; to the value of foo. In your case, the code //![My] Is a declaration with a space in the beginning and a not valid character in the end. You can read this as: //![My The not valid character is used to tell the compiler that whatever is inside should not be read as a real number but as a string of characters. These kind of strings are called "Macros" and you have some different kinds of them in many programming languages: Constant Strings Variable Strings Macros (including you) Functions to Get and Set Macros: C99 #define STRING_CONST(s) s #define STRING_VAR(s) #s #define STRING_SET(s) s= #s C++ #define STRING_CONST(s) s #define STRING_VAR(s) #s #define STRING_SET(s) s= #s Python STRING ='s' STRING_VAR ='s' STRING_SET ='s=' Java STRING = "s" STRING_VAR = "s" STRING_SET = "s=" JavaScript STRING ='s' STRING_VAR ='s' STRING_SET ='s=' PHP #define STRING_CONST(s)s #define STRING_VAR(s)#s #define STRING_SET(s)s=#s In your case,

Homemade Baby Food Toilet

More actions