Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Why can't switch's argument be true?
Why can't switch's argument be true?
Why can't the independent variable of switch be real? Because switch can only be followed by types that are automatically converted into plastics (including plastics), such as char, unsigned int, etc. And the real model can't be automatically converted into plastic. You can manually convert an int)double, but it will lead to a loss of accuracy. If you want to choose the real type in the future, you can multiply it by the multiple of 10, and then choose it, so as not to lose accuracy.

Why can't switch case in android use R.id.xx as an independent variable? Yes switch(v.getId()){

Case number XX:

Break;

}

R.id.XX is an int value and a reference address.

Why can't the U-direction parameters and V-direction parameters of UG be greater than 1 and greater than 1 and go outside?

Why can't ios parameters be passed by address? (Formal parameter type is a basic data type): When a method is called, the actual parameter passes its value to the corresponding formal parameter. Formal parameters only initialize the contents of their own memory cells with the values of actual parameters, which are two different memory cells, so the change of formal parameter values does not affect the values of actual parameters.

Why can't the base of logarithm be negative? First of all, I know you must know the meaning of logarithm, that is, the value of a certain power of the base is a real number and the result of logarithm is a power.

The example you gave is also clear and correct, but the reason why the logarithm base cannot be negative is not that there is no negative base, but that it is artificially specified. In order to simplify the solution and research of logarithm, it is artificially stipulated that the base of logarithm must be positive, that is, a number greater than zero, so that the number of any power of positive number is greater than zero, and then the true number must naturally be greater than zero.

Why do people force the base of logarithm to be positive? First of all, we should think about exponential function, and we also force the base of exponential function to be positive. Because the image of exponential function with negative base is discontinuous, it is difficult to study its characteristics, and logarithm is the inverse function of exponential function, so it is easy to understand why people also force the base of logarithm to be positive.

Why is the parameter of TRUNC function added in 0.5 EXCEL? How to use the TRUNC function: the trunc function has two parameters: TRUNC(Number, [num_digits]), $ NUMBER (number or reference to be truncated) and num_digits (used to specify the precision of truncation). The default value of Num_digits is 0, which is usually omitted and used as a truncation and rounding function; In fact, this function is not only truncated, but also rounded.

Why does the independent variable in golang function not support the default value table_array cannot be a discontinuous region?

Only: contiguous areas in the same table.

Yes, if the parameter has a default value, the value of the parameter can be passed or not, but the default value of the parameter should be set from the right end of the parameter list, such as: int sum(int x, int y=2, int z = 8); This setting is correct. You can set all the default values, or you can partially set the default value int sum(int x = 3, int y, int z).

Destructors cannot have tangible parameters. As long as a function has arguments, it must have tangible parameters, because arguments are represented by formal parameters.

It is easy to produce ambiguity!

The function is defined as follows: deffunc (a list = none, bliss).

The calling method is func(lista). When lista corresponds to parameter bliss, the function call is correct; If it corresponds to a list, the function call is incorrect.

Finally, for functions with multiple default arguments, the design will be more complicated!