About 12,200,000 results
Open links in new tab
  1. 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.

  2. How to initialize a struct in accordance with C programming …

    } An important thing to remember: at the moment you initialize even one object/variable in the struct, all of its other variables will be initialized to default value. If you don't initialize the values …

  3. How to initialize a list with constructor? - Stack Overflow

    Feb 1, 2012 · Using a collection initializer From C# 3, you can use collection initializers to construct a List and populate it using a single expression. The following example constructs a …

  4. How to directly initialize a HashMap (in a literal way)?

    How to directly initialize a HashMap (in a literal way)? Asked 14 years, 4 months ago Modified 4 months ago Viewed 2.1m times

  5. c# - Initialize () vs Constructor () method, proper usage on object ...

    Oct 13, 2014 · We can put all Initialize() code into Constructor() and vice versa (move all warm-up code to Initialize method and call this method from Constructor). Currently, designing a new …

  6. Proper way to initialize C++ structs - Stack Overflow

    Jan 21, 2017 · The new syntax with () should value-initialize the object, assuming it is POD. Is it possible that some subpart of your struct isn't actually POD and that's preventing the expected …

  7. c++ - How do I initialize a const data member? - Stack Overflow

    28 If you don't want to make the const data member in class static, You can initialize the const data member using the constructor of the class. For example:

  8. How to initialize HashSet values by construction? - Stack Overflow

    Jan 11, 2010 · How to initialize HashSet values by construction? Asked 15 years, 10 months ago Modified 1 year, 7 months ago Viewed 1.2m times

  9. initialization - Initializing variables in C - Stack Overflow

    These are just a couple of examples where it isn't strictly necessary to initialize a variable, since it's set later (but not accessed between declaration and initialization). In general though, it …

  10. Initialize a string variable in Python: "" or None?

    Initialize a string variable in Python: "" or None? Asked 16 years, 2 months ago Modified 6 years, 5 months ago Viewed 433k times