Anonymous
public text v1 · immutable#include <iostream>
using namespace std;
void mLoad(char *name)
{
char *ext = strstr( name , "." );
if ( !stricmp( ext, ".bmp") ) cout << "bmp";
else if( !stricmp( ext, ".jpg") ) cout << "jpg";
}
int main()
{
mLoad( "112.jpg" );
cin.get(); cin.get();
}