Learning C++, and some MATHLAB