rai002 @ ウィキ
拡張子を返す
最終更新:
rai002
-
view
//**********************************************************************
// System.IOの使い方がわからないので自作
// 拡張子を返す
//**********************************************************************
string get_dir::GetExtension( string &str)
{
string temp;
int i;
for(i=(int)str.size()-3; i>0; i--){
if( str.at(i) == '.' )break;
}
for(; i<(int)str.size(); i++){
temp += str.at(i);
}
return temp;
}