About 9,500,000 results
Open links in new tab
  1. arrays - How do i define a structure in Matlab - Stack Overflow

    Jul 8, 2013 · S = struct('a', 0, 'b', 1, 'c', 2); What I want to be able to do is create a structure definition (like C). My end goal is to have an array of structures that i can iterate through and perform testing …

  2. 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:

  3. 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, 3 months ago Modified 8 years, 3 months ago Viewed 101k times

  4. 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

  5. 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 structure like …

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

    Dec 24, 2018 · Note also that the same technique of the most upvoted answer can be used to define a class inside a class, a struct inside a struct, and a class inside a struct. class and struct are only …

  7. 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....

  8. Using define macro to initialize structure object in C

    Jun 13, 2020 · The macro DEFAULT_XXX() is used to initialize the structure members data_time and data by given values in its list. The finished preprocessed code will be equivalent to:

  9. What's the syntactically proper way to declare a C struct?

    Sep 12, 2015 · The confusion comes about because some of the declarations are in fact declaring up to three C constructs. You need to keep in mind the difference between: A typedef declaration, A struct …

  10. How to make a structure extern and define its typedef

    Mar 17, 2012 · A structure type definition describes the members that are part of the structure. It contains the struct keyword followed by an optional identifier (the structure tag) and a brace-enclosed …