This Friday Ido's CryptRover goes live on Cymon's Games and I think the 7DRL version of the code is excellent. Mind you, it's in C, not C++, but many 7DRL are an excellent place to start. Most are poorly commented, but are simple enough that you don't feel overwhelmed.