Hi all..I have a little situation that I'd really like to know.
I could have for example
struct Something {
int arr[7];
Something(int _arr[]) {...}
~Something() {}
};
or
int arr[5] and f(int _arr[]).
So my question goes, how would u initialize arr[] during the call of f() so that f() gets the initialized values?
I've tried normal initializing with {}:
Something strange( Something({0, 3, 6, 7, 2}) );
Compiling this causes an error. That's all i knowfor now?
U'd be a big help with my project, thanks



LinkBack URL
About LinkBacks
for now?



I copied your bar code and compiled it and I got an expression syntax error...and i'm wondering if that should work with all compilers, even with my brcc32.exe (i didn't find the version number)?