About 25,600,000 results
Open links in new tab
  1. How to keep one variable constant with other one changing with …

    207 Lets say I have one cell A1, which I want to keep constant in a calculation. For example, I want to calculate a value like this: =(B1+4)/(A1) How do I make it so that if I drag that cell to …

  2. What are magic numbers and why do some consider them bad?

    Symbolic Constant: When to replace? Magic: Unknown semantic Symbolic Constant -> Provides both correct semantic and correct context for use Semantic: The meaning or purpose of a …

  3. Java switch statement: Constant expression required, but it IS …

    1 - The constant expression restrictions can be summarized as follows. Constant expressions a) can use primitive types and String only, b) allow primaries that are literals (apart from null) and …

  4. Why can I change a constant object in JavaScript?

    A constant array only means that the value of the pointer will not change - but in fact the data contained at that address is free to. In javascript, you are allowed to call methods of constant …

  5. How to declare a class instance as a constant in C#?

    50 Constants have to be compile time constant, and the compiler can't evaluate your constructor at compile time. Use readonly and a static.

  6. Switch case in C# - a constant value is expected

    3 switch is very picky in the sense that the values in the switch must be a compile time constant. and also the value that's being compared must be a primitive (or string now). For this you …

  7. how to define a constant array in c/c++? - Stack Overflow

    How to define constant 1 or 2 dimensional array in C/C++? I deal with embedded platform (Xilinx EDK), so the resources are limited. I'd like to write in third-party header file something like #de...

  8. What does the PHP error message "Use of undefined constant" …

    Using a constant that's not defined in this version of PHP, or is defined in an extension that's not installed There are some system-defined constants that only exist in newer versions of PHP, …

  9. How can you define a static data member of type const std::string?

    Inside class definitions you can only declare static members. They have to be defined outside of the class. For compile-time integral constants the standard makes the exception that you can …

  10. c - Error "initializer element is not constant" when trying to ...

    Moreover, in C language, the term "constant" refers to literal constants (like 1, 'a', 0xFF and so on), enum members, and results of such operators as sizeof. Const-qualified objects (of any …