trying to pass array into c++