two c++ problems.