【C++】template 統合スレ -- Part5
■ このスレッドは過去ログ倉庫に格納されています
0297デフォルトの名無しさん
NGNGこれでいける
struct Array{
char c[10];
friend bool operator<(const Array &a,const Array &b){
return strcmp(a.c,b.c)<0;
}
};
std::sort((Array*)str, (Array*)(str+4));
■ このスレッドは過去ログ倉庫に格納されています