中国高校课件下载中心 》 教学资源 》 大学文库

《C语言程序设计源代码》C083结构体变量初始化

文档信息
资源类别:文库
文档格式:DOC
文档页数:1
文件大小:24.5KB
团购合买:点击进入团购
内容简介
#include struct student Int num Int age; float score
刷新页面文档预览

#include struct student Int num char name[ 15]: char sex float score stl={1005,"韩影"F,20,99.9}; /*结构体变量初始化* main printf("学生信息: printf("%d %s %c %d %5.1f\n",stl. num, st l name, stl. sex, stl. age, st l. score);

#include struct student { int num; char name[15]; char sex; int age; float score; }st1={1005,"韩影",'F',20,99.9}; /*结构体变量初始化*/ main() { printf("学生信息:\n"); printf("%d %s %c %d %5.1f\n",st1.num,st1.name,st1.sex,st1.age,st1.score); }

已到末页,全文结束
刷新页面下载完整文档
VIP每日下载上限内不扣除下载券和下载次数;
按次数下载不扣除下载券;
注册用户24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
相关文档