You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You should use enum (or at least #define) to name constants such as LEFT_LEGS, RIGHT_LEGS,... instead of using number like 0, 1 which decreases the code readability.
for example:
enum LegSides{
LEFT_LEGS = 0,
RIGHT_LEGS = 1
};
or just forget the numbers:
enum LegSides{
LEFT_LEGS,
RIGHT_LEGS
};
then the function:
doubleleg(double Z, double Y, double X2, int side) {...}
will be:
doubleleg(double Z, double Y, double X2, LegSides side) {...}
You should use enum (or at least #define) to name constants such as LEFT_LEGS, RIGHT_LEGS,... instead of using number like 0, 1 which decreases the code readability.
for example:
or just forget the numbers:
enum LegSides{ LEFT_LEGS, RIGHT_LEGS };
then the function:
will be:
and call it:
leg(x, y, z, LEFT_LEGS);
further here
The text was updated successfully, but these errors were encountered: