请问一下 为什么我的qsort 会当掉 底下是我片段的程式码 有谁可以跟我说一下
#include <iostream>
using namespace std;
#define MAX_SIZE 512
typedef struct
{
int start_metting_time;
int finsh_meeting_time;
int diff;
}metting;
int compare(const void *a,const void *b)
{
metting *m_a=(metting *)a;//当在这一行
metting *m_b=(metting *)b;
if(m_a->diff>m_b->diff)
return 1;
return -1;
}
bool check_during_time(bool *check_meetig_room,metting m)
{
for(int i=m.start_metting_time;i<=m.finsh_meeting_time;i++)
{
if(check_meetig_room[i]==true)
return true;
}
return false;
}
int _tmain(int argc, _TCHAR* argv[])
{
int case_count;
cin>>case_count;
while(case_count