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

📄 page_1010.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_1010</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_1009.html">&lt;&nbsp;previous page</a></td>				<td align="center" width="40%" style="background: #EEF3E2"><strong style="color: #2F4F4F; font-size: 120%;">page_1010</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_1011.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 1010</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">the </font><font face="Courier New, Courier, Mono New, Courier, Mono" size="3">GetRecord</font><font face="Times New Roman, Times, Serif" size="3"> function, we cannot use the extraction operator (</font><font face="Courier New, Courier, Mono New, Courier, Mono" size="3">&gt;&gt;</font><font face="Times New Roman, Times, Serif" size="3">), which stops reading as soon as a whitespace character is found. For each string we must call the </font><font face="Courier New, Courier, Mono New, Courier, Mono" size="3">get</font><font face="Times New Roman, Times, Serif" size="3"> function, followed by a call to the </font><font face="Courier New, Courier, Mono New, Courier, Mono" size="3">ignore</font><font face="Times New Roman, Times, Serif" size="3"> function to consume the newline character.</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">//******************************************************************<br />//聽IMPLEMENTATION聽FILE聽(reclist.cpp)<br />//聽This聽file聽implements聽the聽RecordList聽class聽member聽functions.<br />//聽List聽representation:聽an聽array聽of聽pointers聽to聽PersonnelData<br />//聽structs聽and聽an聽integer聽variable聽giving聽the聽current聽length<br />//聽of聽the聽list<br />//******************************************************************<br />#include聽reclist.h<br />#include聽&lt;iostream.h&gt;<br />#include聽&lt;string.h&gt;聽聽聽聽聽//聽For聽strcmp()<br />#include聽&lt;stddef.h&gt;聽聽聽聽聽//聽For聽NULL<br /><br />//聽Private聽members聽of聽class:<br />//聽聽聽聽PersonPtr聽ptrList聽[MAX_EMPL];聽聽聽聽Array聽of聽pointers<br />//聽聽聽聽int聽聽聽聽聽聽聽length;聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽Number聽of聽valid聽pointers<br />//聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽in聽ptrList<br /><br />void聽GetRecord(聽ifstream&amp;,聽PersonPtr聽);聽聽聽//聽Prototype聽for聽helper<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽//聽聽聽function<br /><br />//******************************************************************<br /><br />RecordList::RecordList()<br /><br />//聽Default聽constructor<br /><br />//聽Postcondition:<br />//聽聽聽聽聽length聽==聽0<br /><br />{<br />聽聽聽聽length聽=聽0;<br />}<br /><br />//******************************************************************<br /><br />RecordList::~RecordList()<br /><br />//聽Destructor<br /><br />//聽Postcondition:<br />//聽聽聽聽聽Structs聽pointed聽to聽by聽ptrList[0..length-1]<br />//聽聽聽聽聽are聽no聽longer聽on聽the聽free聽store<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_1009.html">&lt;&nbsp;previous page</a></td>				<td align="center" width="40%" style="background: #EEF3E2"><strong style="color: #2F4F4F; font-size: 120%;">page_1010</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_1011.html">next page&nbsp;&gt;</a></td>			</tr>		</table>		</body>	</html>

⌨️ 快捷键说明

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