C++ parameters almost working.