個人第九個代碼

個人第九個代碼ide

#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>學習

struct Book
{
char name[20];
short int price;
};設計

int main()
{
struct Book b1 = { "C語言程序設計",45 };
printf("書名:%s\n", b1.name);
printf("價格:%d\n", b1.price);
b1.price= 55;
printf("改價以後:%d\n", b1.price);
return 0;
}
//學習結構體(建立一本書)it

相關文章
相關標籤/搜索