📄 c56.htm
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>概要 </title>
<script language="javascript">
var prePage="http://www.nec.sjtu.edu.cn/support/Course/C/c/c5/c/c5/c55.htm";
var nextPage="c/c6/c60.htm";
</script>
<link rel="stylesheet" href="../cstyle.css" type="text/css">
</head>
<body background="../img/mainback.jpg" bgproperties="fixed">
<h2 align="center"><font face="楷体_GB2312">5.6 概要</font></h2>
<hr>
<blockquote>
<p>在本章中, 你应该<font color="#FF0000">掌握</font>:</p>
<p><br>
<img src="../img/dot.gif" alt="dot.gif (114 bytes)" WIDTH="7" HEIGHT="7">
结构的框架是什么样的, 以及如何定义一个结构 详见<a
href="http://www.nec.sjtu.edu.cn/support/Course/C/c/c5/C51.htm">5.1节</a></p>
<p><img src="../img/dot.gif" alt="dot.gif (114 bytes)" WIDTH="7" HEIGHT="7">
结构标志是什么, 以及怎么用它 详见<a href="http://www.nec.sjtu.edu.cn/support/Course/C/c/c5/C51.htm">5.1节</a></p>
<p><img src="../img/dot.gif" alt="dot.gif (114 bytes)" WIDTH="7" HEIGHT="7">
如何定义一个结构变量: struct car honda;
详见<a href="http://www.nec.sjtu.edu.cn/support/Course/C/c/c5/C51.htm">5.1节</a></p>
<p><img src="../img/dot.gif" alt="dot.gif (114 bytes)" WIDTH="7" HEIGHT="7">
如何访问一个结构成员: honda.mpg 详见<a
href="http://www.nec.sjtu.edu.cn/support/Course/C/c/c5/C51.htm">5.1节</a></p>
<p><img src="../img/dot.gif" alt="dot.gif (114 bytes)" WIDTH="7" HEIGHT="7">
如何初始化一个结构: 详见<a href="http://www.nec.sjtu.edu.cn/support/Course/C/c/c5/C52.htm">5.2节</a><br>
<br>
<img src="../img/dot.gif" alt="dot.gif (114 bytes)" WIDTH="7" HEIGHT="7">
如何形成和使用结构数组: struct car gm[5];
详见<a href="http://www.nec.sjtu.edu.cn/support/Course/C/c/c5/C53.htm">5.3节</a></p>
<p><img src="../img/dot.gif" alt="dot.gif (114 bytes)" WIDTH="7" HEIGHT="7">
如何在函数中运用结构: 作为函数参数或函数返回值。
详见<a href="http://www.nec.sjtu.edu.cn/support/Course/C/c/c5/C54.htm">5.4节</a></p>
<p><img src="../img/dot.gif" alt="dot.gif (114 bytes)" WIDTH="7" HEIGHT="7">
如何构造嵌套的结构: 详见<a href="http://www.nec.sjtu.edu.cn/support/Course/C/c/c5/C55.htm">5.5节</a></p>
<p><img src="../img/dot.gif" alt="dot.gif (114 bytes)" WIDTH="7" HEIGHT="7">
如何访问嵌套结构的成员: event.stime.month
详见<a href="http://www.nec.sjtu.edu.cn/support/Course/C/c/c5/C55.htm">5.5节</a></p>
</blockquote>
<p align="center"><a href="../c6/c60.htm"><img src="../img/next.gif" width="145"
height="30" alt="next.gif (3633 bytes)" border="0"></a></p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -