mmkc2_subrouting_1.cpp

来自「&#12619 &#12619 &#12619 &#12619 &#12619 」· C++ 代码 · 共 31 行

CPP
31
字号
void init_schedule() 
{


	 schedule_ptr = (struct schedule *) malloc (sizeof(struct schedule)); 

     schedule_ptr->empty_or_not=0;  //0: empty  1:not_empty 
     schedule_ptr->the_first_event_ptr=NULL;  

	 schedule_head_event_ptr=NULL;
     schedule_tail_event_ptr=NULL;

}


struct event *get_a_event_from_schedule() 
{
	struct event *the_getting_event_ptr=NULL;

    if (schedule_ptr->empty_or_not==0 && schedule_ptr->the_first_event_ptr==NULL )
	{
      //schedule is empty
	  the_getting_event_ptr=NULL;
      
	}
	else
	{
      //schedule is not empty
	  

	  //

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?