About 50 results
Open links in new tab
  1. How to initialize a struct in accordance with C programming language ...

    Is this the way to declare and initialize a local variable of MY_TYPE in accordance with C programming language standards (C89, C90, C99, C11, etc.)? Or is there anything better or at least working? …

  2. c# - How to initialize a list of strings (List<string>) with many ...

    590 How is it possible to initialize (with a C# initializer) a list of strings? I have tried with the example below but it's not working.

  3. Declaring vs Initializing a variable? - Stack Overflow

    Jul 30, 2015 · The only difference is that the statement will initialize any declared variables without a value to undefined. In both examples, you are declaring a variable. If you assign a value to a variable …

  4. c++ - What does 'initialization' exactly mean? - Stack Overflow

    Nov 11, 2019 · To sum up, if the implementation cannot constant initialize it, then it must first zero initialize and then initialize it before any dynamic initialization happends.

  5. java.lang.NoClassDefFoundError: Could not initialize class XXX

    The solutions are: initialize the DateTimeFormatter in a @PostConstruct method or in the method where it is needed. Maybe the Strings are internalized before the classloader starts to work, but the …

  6. How do I initialize weights in PyTorch? - Stack Overflow

    Mar 22, 2018 · How do I initialize weights and biases of a network (via e.g. He or Xavier initialization)?

  7. "Initializing" variables in python? - Stack Overflow

    Jun 16, 2015 · Even though initializing variables in python is not necessary, my professor still wants us to do it for practice. I wrote my program and it worked fine, but after I tried to initialize some of the

  8. Java: define terms initialization, declaration and assignment

    Here i can be "initialized" from two possible locations, by simple assignments. Because of that, if i was an array, you can't use the special array initializer shorthand syntax with this construct. So basically …

  9. c++ - A value of type "const char*" cannot be used to initialize an ...

    Feb 13, 2018 · A const pointer to non-const char would be a char* const, and you can initialize a char* from that all day if you want. You can, if you really want, achieve this with const_cast<char*>(p), and …

  10. How can I initialize all members of an array to the same value?

    How would you use memset to initialize a int array to some value larger than 255? memset only works if the array is byte sized.