In C++ and MIPS language