00001 #include <iostream> 00002 #include <string> 00003 00004 int main(int argc, char * argv[]) 00005 { 00006 std::string s; 00007 00008 s = "2005-04-13.incomplete"; 00009 00010 std::cout << s.substr(s.size()-strlen(".incomplete")) << std::endl; 00011 }