Helllo,다중 레벨 피드백 큐 초기화를위한 구조
데이터 구조에 액세스하는 데 문제가있는 다중 레벨 피드백 큐와 메신저를 작성하려고합니다.
struct str1
{
` int time;
int Id;
int Size;
struct str1 *next;
};
struct mlfq
{
int quantum;
int timereached;
struct mystruct p;
};
struct str1 *front; //read from the file and stored.
struct mlfq *ml;
내가 원하는 것은 "mlfq"를 다른 "front"대기열에 연결하는 것입니다. 양도 호환되지 않는 종류 : 내 삽입 기능에서
, 나는 메모리
struct mlfq *ptr;
struct str1 *temp;
ptr = malloc(sizeof(struct mlgq)
temp=malloc(sizeof(struct str1));
ptr->p = front;
에게 점점 오류를 할당했다. 프론트가로드되고 큐 구조 "프론트"의 컨텐츠를 연결하려고합니다.
누구나 말할 수 있습니까? front
유형 struct str1 *
또는 struct mystruct *
의 동안
ptr->p = front;
ptr->p
에서
게시하는 동안 "str1"구조체의 이름을 "mystruct"로 변경 했습니까? – wildplasser