📄 table7-1.htm
字号:
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>表7-1</title>
</head>
<body>
<p align="left"><font size="3">
<font face="黑体">文件打开方式选项</font></font></p>
<table BORDER="1" CELLSPACING="1" CELLPADDING="7" WIDTH="568" bgcolor="#99CCFF" bordercolorlight="#FFFFFF">
<tr>
<td WIDTH="38%" VALIGN="TOP" align="center">
<p ALIGN="center" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font LANG="ZH-CN" size="2">标志</font></td>
<td WIDTH="62%" VALIGN="TOP" align="center">
<p ALIGN="center" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font LANG="ZH-CN" size="2">含义</font></td>
</tr>
<tr>
<td WIDTH="38%" VALIGN="TOP" HEIGHT="7">
<p ALIGN="JUSTIFY" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2">ios::ate</font></td>
<td WIDTH="62%" VALIGN="TOP" HEIGHT="7">
<p ALIGN="JUSTIFY" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font LANG="ZH-CN" size="2">如果文件存在,输出内容加在末尾</font></td>
</tr>
<tr>
<td WIDTH="38%" VALIGN="TOP">
<p ALIGN="JUSTIFY" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2">ios::in</font></td>
<td WIDTH="62%" VALIGN="TOP">
<p ALIGN="JUSTIFY" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2"><font LANG="ZH-CN">具有输入能力(</font>ifstream<font LANG="ZH-CN">默认)</font></font></td>
</tr>
<tr>
<td WIDTH="38%" VALIGN="TOP">
<p ALIGN="JUSTIFY" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2">ios::out</font></td>
<td WIDTH="62%" VALIGN="TOP">
<p ALIGN="JUSTIFY" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2"><font LANG="ZH-CN">具有输出能力(</font>ofstream<font LANG="ZH-CN">默认)</font></font></td>
</tr>
<tr>
<td WIDTH="38%" VALIGN="TOP">
<p ALIGN="JUSTIFY" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2">ios::trunc</font></td>
<td WIDTH="62%" VALIGN="TOP">
<p ALIGN="JUSTIFY" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font LANG="ZH-CN" size="2">如文件存在,清除文件内容(默认)</font></td>
</tr>
<tr>
<td WIDTH="38%" VALIGN="TOP">
<p ALIGN="JUSTIFY" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2">ios::nocreate</font></td>
<td WIDTH="62%" VALIGN="TOP">
<p ALIGN="JUSTIFY" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font LANG="ZH-CN" size="2">如文件不存在,返回错误</font></td>
</tr>
<tr>
<td WIDTH="38%" VALIGN="TOP">
<p ALIGN="JUSTIFY" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2">ios::noreplace</font></td>
<td WIDTH="62%" VALIGN="TOP">
<p ALIGN="JUSTIFY" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font LANG="ZH-CN" size="2">如文件存在,返回错误</font></td>
</tr>
<tr>
<td WIDTH="38%" VALIGN="TOP">
<p ALIGN="JUSTIFY" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2">ios::binary</font></td>
<td WIDTH="62%" VALIGN="TOP">
<p ALIGN="JUSTIFY" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font LANG="ZH-CN" size="2">以二进制方式打开文件</font></td>
</tr>
</table>
<p> </p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -