こんな感じです。 class test { private: int test1[10]; public: int *GetTest(){ for ( int i=0; i<10; i++) { if ( test1[i] == -1 ) return &test1[i]; } return NULL; } } どうでしょうか?
http://www.open-std.org/jtc1/sc22/wg21/ News 2006-02-26: The C++ Standard Library Issues List (Revision 41) is available (.tar.gz) News 2006-02-26: C++ Standard Core Language Issues List (Revision 40) is available, also committee version