Google 搜竟然好难搜 @@"struct QQ
{
  int *p1;
  int *p2;
  float f;
} QQ_001 {NULL, NULL, 123.456 };  // 失败 失败 失败 失败 失败

解决方案 »

  1.   

    struct QQ 

      int *p1; 
      int *p2; 
      float f; 
    } ;
    QQ QQ_001 {NULL, NULL, 123.456 };
      

  2.   


    struct QQ 

        int *p1; 
        int *p2; 
        float f; 
    }QQ_001={NULL,NULL,123.456};
      

  3.   

    struct QQ
    {
      int *p1;
      int *p2;
      float f;
    } QQ_001 = {NULL, NULL, 123.456 };
      

  4.   


    不行耶  编译还是错误  unexpected token '{' following declaration of QQ_001