Search:

Type: Posts; User: angabout

Search: Search took 0.01 seconds.

  1. Thank you for your response. Let's say though I...

    Thank you for your response. Let's say though I initialize a MyStruct object in main(), assuming I have a constructor,



    int main()
    {
    MyStruct ms(0.1, 0.2);
    ms.[0] // == 0.1
    ...
  2. subscipt overload (returning reference to array?)

    Hi all,

    I'm a bit stumped about the idea of returning a reference to an array inside a struct. For example,



    struct MyStruct
    {
    float x, y;
Results 1 to 2 of 2