what i have done is sorted the *.cpp file according to latest timestamp using find command. i hv soted rthe value of latest path in a variable .. and then
cd variable name ie going to that path where latest version of cpp is stored.
then I need to grep for methods like publi , private etc..