运行 ❯
获取您
自己
的网站
×
更改方向
更改主题,深色/浅色
前往 Spaces
#include <stdio.h> struct Car { char brand[50]; char model[50]; int year; }; int main() { struct Car car1 = {"BMW", "X5", 1999}; struct Car car2 = {"Ford", "Mustang", 1969}; struct Car car3 = {"Toyota", "Corolla", 2011}; printf("%s %s %d\n", car1.brand, car1.model, car1.year); printf("%s %s %d\n", car2.brand, car2.model, car2.year); printf("%s %s %d\n", car3.brand, car3.model, car3.year); return 0; }
宝马 X5 1999
福特野马 1969
丰田卡罗拉 2011