C++ getfromend