⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 page_788.html

📁 Programming and Problem Solving with C++
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">	<html>		<head>			<title>page_788</title>			<link rel="stylesheet" href="reset.css" type="text/css" media="all">			<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />		</head>		<body>		<table summary="top nav" border="0" width="100%">			<tr>				<td align="left" width="30%" style="background: #EEF3E2"><a style="color: blue; font-size: 120%; font-weight: bold; text-decoration: none; font-family: verdana;" href="page_787.html">&lt;&nbsp;previous page</a></td>				<td align="center" width="40%" style="background: #EEF3E2"><strong style="color: #2F4F4F; font-size: 120%;">page_788</strong></td>				<td align="right" width="30%" style="background: #EEF3E2"><a style="color: blue; font-size: 120%; font-weight: bold; text-decoration: none; font-family: verdana;" href="page_789.html">next page&nbsp;&gt;</a></td>			</tr>					<tr>				<td align="left" colspan="3" style="background: #ffffff; padding: 20px;">    <table border="0" width="100%" cellpadding="0"><tr><td align="center">  <table border="0" cellpadding="2" cellspacing="0" width="100%"><tr><td align="left"></td>  <td align="right"></td>  </tr></table></td></tr><tr><td align="left"><p></p><table border="0" cellspacing="0" cellpadding="0" width="100%"><tr><td align="right"><font face="Times New Roman, Times, Serif" size="2" color="#FF0000">Page 788</font></td></tr></table><table border="0" cellspacing="0" cellpadding="0"><tr><td rowspan="5"></td>  <td colspan="3" height="12"></td>  <td rowspan="5"></td></tr><tr><td colspan="3"></td></tr><tr><td></td>  <td><font face="Times New Roman, Times, Serif" size="3">coding in C++. We have also shown two ways of representing the logical structure of a machine record in a shop inventory. The first used a record where all the components in an entry were defined (made concrete) at the same time. The second used a hierarchical record where the dates and statistics describing a machine's history were defined in lower-level records.</font></td><td></td></tr><tr><td colspan="3"></td></tr><tr><td colspan="3" height="1"></td></tr></table><table border="0" cellspacing="0" cellpadding="0"><tr><td rowspan="5"></td>  <td colspan="3" height="12"></td>  <td rowspan="5"></td></tr><tr><td colspan="3"></td></tr><tr><td></td>  <td><font face="Times New Roman, Times, Serif" size="3">Let's look again at the two different ways in which we represented our logical data structure.</font></td><td></td></tr><tr><td colspan="3"></td></tr><tr><td colspan="3" height="1"></td></tr></table><table border="0" cellspacing="0" cellpadding="0"><tr><td rowspan="5"></td>  <td colspan="3" height="12"></td>  <td rowspan="5"></td></tr><tr><td colspan="3"></td></tr><tr><td></td>  <td><font face="Courier New, Courier, Mono New, Courier, Mono" size="2">typedef聽char聽String50[51];<br /><br />//聽**聽Version聽1聽**<br /><br />struct聽MachineRec<br />{<br />聽聽聽聽int聽聽聽聽聽聽idNumber;<br />聽聽聽聽String50聽description;<br />聽聽聽聽float聽聽聽聽failRate;<br />聽聽聽聽int聽聽聽聽聽聽lastServiceMonth;聽聽聽//聽Assume聽1..12<br />聽聽聽聽int聽聽聽聽聽聽lastServicedDay;聽聽聽聽//聽Assume聽1..31<br />聽聽聽聽int聽聽聽聽聽聽lastServicedYear;聽聽聽//聽Assume聽1900..2050<br />聽聽聽聽int聽聽聽聽聽聽downDays;<br />聽聽聽聽int聽聽聽聽聽聽purchaseDateMonth;聽聽//聽Assume聽1..12<br />聽聽聽聽int聽聽聽聽聽聽purchaseDateDay;聽聽聽聽//聽Assume聽1..31<br />聽聽聽聽int聽聽聽聽聽聽purchaseDateYear;聽聽聽//聽Assume聽1900..2050<br />聽聽聽聽float聽聽聽聽cost;<br />};<br /><br />//聽**聽Version聽2聽**<br /><br />struct聽DateTye<br />{<br />聽聽聽聽int聽month;聽聽//聽Assume聽1..12<br />聽聽聽聽int聽day;聽聽聽聽//聽Assume聽1..31<br />聽聽聽聽int聽year;聽聽聽//聽Assume聽1900..2050<br />};<br />struct聽StatisticsType<br />{<br />聽聽聽聽float聽聽聽聽failRate;<br />聽聽聽聽DateType聽lastServiced;<br />聽聽聽聽int聽聽聽聽聽聽downDays;<br />};<br />struct聽MachineRec<br />{<br />聽聽聽聽int聽聽聽聽聽聽聽聽聽聽聽聽idNumber;<br />聽聽聽聽String50聽聽聽聽聽聽聽description;<br />聽聽聽聽StatisticsType聽history;<br />聽聽聽聽DateType聽聽聽聽聽聽聽purchaseDate;<br />聽聽聽聽float聽聽聽聽聽聽聽聽聽聽cost;<br />};</font></td><td></td></tr><tr><td colspan="3"></td></tr><tr><td colspan="3" height="1"></td></tr></table></td></tr></table><p><font size="0"></font></p>  </td>			</tr>				<tr>				<td align="left" width="30%" style="background: #EEF3E2"><a style="color: blue; font-size: 120%; font-weight: bold; text-decoration: none; font-family: verdana;" href="page_787.html">&lt;&nbsp;previous page</a></td>				<td align="center" width="40%" style="background: #EEF3E2"><strong style="color: #2F4F4F; font-size: 120%;">page_788</strong></td>				<td align="right" width="30%" style="background: #EEF3E2"><a style="color: blue; font-size: 120%; font-weight: bold; text-decoration: none; font-family: verdana;" href="page_789.html">next page&nbsp;&gt;</a></td>			</tr>		</table>		</body>	</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -