About 5,190,000 results
Open links in new tab
  1. struct - C-like structures in Python - Stack Overflow

    Aug 30, 2008 · Is there a way to conveniently define a C-like structure in Python? I'm tired of writing stuff like:

  2. How do I create a custom type in PowerShell for my scripts to use?

    I would like to be able to define and use a custom type in some of my PowerShell scripts. For example, let's pretend I had a need for an object that had the following structure: Contact { string

  3. C++, how to declare a struct in a header file - Stack Overflow

    hi @andand why would someone define a structure in a header file? Why not define a class directly? @HaniGoc, You declare the struct or class methods and members in the header so …

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

    @Geremia you have to first define the struct in both cases, but with designated initializers, you make the code more readable, and more resilient to errors, in case of changes in the struct.

  5. How to declare a structure in a header that is to be used by …

    For a structure definition that is to be used across more than one source file, you should definitely put it in a header file. Then include that header file in any source file that needs the structure.

  6. c - typedef struct vs struct definitions - Stack Overflow

    225 struct and typedef are two very different things. The struct keyword is used to define, or to refer to, a structure type. For example, this:

  7. python - how to define a structure like in C - Stack Overflow

    Sep 6, 2010 · how to define a structure like in C [duplicate] Asked 15 years, 2 months ago Modified 8 years, 2 months ago Viewed 101k times

  8. Define a struct inside a class in C++ - Stack Overflow

    Dec 24, 2018 · Can someone give me an example about how to define a new type of struct in a class in C++. Thanks.

  9. TypeScript define object structure for later use - Stack Overflow

    Aug 17, 2016 · Is it possible to define an object structure in TypeScript that can be used then as parameter type? What I mean: I have (let's say) 5 functions that return the same object …

  10. default value for struct member in C - Stack Overflow

    Dec 5, 2012 · Is it possible to set default values for some struct member? I tried the following but, it'd cause syntax error: typedef struct { int flag = 3; } MyStruct; Errors: $ gcc -o testIt test.c test....