2015-02-24 61 views

回答

2
#include <stdio.h> 

typedef struct { 
    int a,b; 
}ret; 

ret func(){ 
    ret t; t.a=1; t.b=2; 
    return t; 
} 

int main() { 
    ret test=func(); 
    printf("%d\t%d\n",test.a, test.b); 
    return 0; 
}