![]() |
От: | Stals | |
Дата: | 26.03.10 19:17 | ||
Оценка: |
struct Entry{
std::string name;
int number;
};
std::vector<Entry>book;
int phoneSort(/*что мне передавать здесь?*/){
struct Entry *ia=(struct Entry *)a;
struct Entry *ib=(struct Entry *)b;
return ia->number-ib->number;
}
main(){
sort(book,bookLen,sizeof(struct Entry),phoneSort);
}