解决方案 »

  1.   

    选中  idiv_t   转到声明/定义,看看是哪个文件
      

  2.   

    typedef struct _ldiv_t {
            long quot;
            long rem;
    } ldiv_t;
      

  3.   

    在网上查到这个结构体属于stdlib.h头文件,我包含了这个头文件还是一样的错误,可以帮我解答一下么?
      

  4.   

    头里:
    /* Data structure definitions for div and ldiv runtimes. */#ifndef _DIV_T_DEFINEDtypedef struct _div_t {
            int quot;
            int rem;
    } div_t;typedef struct _ldiv_t {
            long quot;
            long rem;
    } ldiv_t;#define _DIV_T_DEFINED
    #endif只有 #ifndef _DIV_T_DEFINED 才定义,
    所以: 
    #undef     _DIV_T_DEFINED
    #include <stdlib.h>
      

  5.   

    div_t, ldiv_t structures
     Store values returned by div and ldiv, respectively. 
     STDLIB.H