struct cat {
const char *name;
const char *breed;
int avgHeightCm;
int avgWeightLbs;
};
int main(void){
struct cat juju = {"Juju", "Persian", 30, 164};
printf("name = %s\n\n", juju.name);
printf("species %s\n\n", juju.breed);
printf("Height = %dcm\n\n", juju.avgHeightCm);
printf("Weight = %dLb\n\n", juju.avgWeightLbs);
}
댓글 없음:
댓글 쓰기