example1-4.htm
来自「Visual C++面向对象程序设计教程(配套习题资源)」· HTM 代码 · 共 28 行
HTM
28 行
<html>
<head>
<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>例1-4</title>
</head>
<body>
<p style="line-height: 150%; margin-top: 0; margin-bottom: 0"><font size="2">#include <iostream.h><br>
#include <iomanip.h><br>
void main( )<br>
{<br>
int number=1234;<br>
cout <<setw(3)<<number<<setw(10)<<number*number<<endl;<br>
}</font></p>
<font SIZE="3">
<p ALIGN="JUSTIFY" style="line-height: 150%; margin-top: 0; margin-bottom: 0"></font><font FACE="??ì?,SimSun" LANG="ZH-CN" size="2">程序输出结果是:</font></p>
<p ALIGN="JUSTIFY" style="line-height: 150%; margin-top: 0; margin-bottom: 0"><font size="2">1234_
_ _1522756</font></p>
<p> </p>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?