摘要:
#include <iostream>using namespace std; const int apple_size = 10;const int banana_size = 20; //********************************fruit interface class fruit{public: virtual void name()=0; virtual i... 阅读全文
摘要:
#include <stdio.h> struct st_test{ int a; int b;}; enum{ one, two,}; struct st_test tt[2]={ [two] = { .b=1, .a=0, }, [one] = {2,3,},}; int main(){ printf("%d\n",tt[two].b); return 0;} 如上图红色部... 阅读全文