//String handling to find file name without path #include #include using namespace std; //find filename from path void main() { string path = "C:/Graphics/Icons/earth.bmp"; string filename; //we want it to be earth.bmp when we finish int pos; pos=path.find_last_of("/"); //find last slash if( pos <=0 ) cout<<"No slash was found\n"; else { filename=path.substr(pos+1);//do not include / cout<