📄 c语言:黑客学员必修课之二 - 软件屋.htm
字号:
<TD width=11>
<DIV align=center><IMG height=7
src="C语言:黑客学员必修课之二 - 软件屋.files/index_rj16.gif"
width=7></DIV></TD>
<TD width=161>
<DIV align=left><SPAN class=style9><A class=a
title=黑客利用网络认证缺陷入侵电脑
href="http://news.softhouse.com.cn/news/show/540.html"
target=_blank>黑客利用网络认证缺陷...</A>
</SPAN></DIV></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD bgColor=#b2d5e6>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD scope=col align=middle width=15><IMG height=12
src="C语言:黑客学员必修课之二 - 软件屋.files/index_rj10.gif"
width=11></TD>
<TD scope=col align=left width=73
height=21><STRONG>相关文摘</STRONG></TD>
<TD scope=col align=right
width=74> </TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD>
<TABLE cellSpacing=3 cellPadding=0 width="100%"
bgColor=#e7f6fd border=0>
<TBODY>
<TR bgColor=#e7f6fd>
<TD width=11>
<DIV align=center><IMG height=7
src="C语言:黑客学员必修课之二 - 软件屋.files/index_rj16.gif"
width=7></DIV></TD>
<TD width=161>
<DIV align=left><SPAN class=style9><A class=a
href="http://digest.softhouse.com.cn/digest/show/28640.html"
target=_blank>浅析J2EE应用中的时间值字段的数据类型 </A></SPAN></DIV></TD>
<TR bgColor=#e7f6fd>
<TD width=11>
<DIV align=center><IMG height=7
src="C语言:黑客学员必修课之二 - 软件屋.files/index_rj16.gif"
width=7></DIV></TD>
<TD width=161>
<DIV align=left><SPAN class=style9><A class=a
href="http://digest.softhouse.com.cn/digest/show/28368.html"
target=_blank>JBuilder2005 Servlet开发之程序
</A></SPAN></DIV></TD>
<TR bgColor=#e7f6fd>
<TD width=11>
<DIV align=center><IMG height=7
src="C语言:黑客学员必修课之二 - 软件屋.files/index_rj16.gif"
width=7></DIV></TD>
<TD width=161>
<DIV align=left><SPAN class=style9><A class=a
href="http://digest.softhouse.com.cn/digest/show/28316.html"
target=_blank>利用Google作黑客攻击的原理和防范 </A></SPAN></DIV></TD>
<TR bgColor=#e7f6fd>
<TD width=11>
<DIV align=center><IMG height=7
src="C语言:黑客学员必修课之二 - 软件屋.files/index_rj16.gif"
width=7></DIV></TD>
<TD width=161>
<DIV align=left><SPAN class=style9><A class=a
href="http://digest.softhouse.com.cn/digest/show/28314.html"
target=_blank>黑客破解口令常用的三种方法 </A></SPAN></DIV></TD>
<TR bgColor=#e7f6fd>
<TD width=11>
<DIV align=center><IMG height=7
src="C语言:黑客学员必修课之二 - 软件屋.files/index_rj16.gif"
width=7></DIV></TD>
<TD width=161>
<DIV align=left><SPAN class=style9><A class=a
href="http://digest.softhouse.com.cn/digest/show/28313.html"
target=_blank>黑客突破防火墙常用的几种技术 </A></SPAN></DIV></TD>
<TR bgColor=#e7f6fd>
<TD width=11>
<DIV align=center><IMG height=7
src="C语言:黑客学员必修课之二 - 软件屋.files/index_rj16.gif"
width=7></DIV></TD>
<TD width=161>
<DIV align=left><SPAN class=style9><A class=a
href="http://digest.softhouse.com.cn/digest/show/28264.html"
target=_blank>防止黑客入侵ADSL的一些技巧
</A></SPAN></DIV></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD bgColor=#b2d5e6>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD scope=col align=middle width=15><IMG height=12
src="E:\新建文件夹\C语言:黑客学员必修课之二 - 软件屋.files\index_rj10(1).gif"
width=11></TD>
<TD scope=col align=left width=73
height=21><STRONG>相关软件</STRONG></TD>
<TD scope=col align=right
width=74> </TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD>
<TABLE cellSpacing=3 cellPadding=0 width="100%"
bgColor=#e7f6fd border=0>
<TBODY>
<TR bgColor=#e7f6fd>
<TD width=11>
<DIV align=center><IMG height=7
src="E:\新建文件夹\C语言:黑客学员必修课之二 - 软件屋.files\index_rj16(1).gif"
width=7></DIV></TD>
<TD width=161>
<DIV align=left><SPAN class=style9><A class=A11
title="书法作品屏保程序 2.1"
onclick="window.open('http://soft.softhouse.com.cn/software/show/13552.html')"
href="http://www.softhouse.com.cn/news/show/2702.html#">书法作品屏保程序
2.1 </A></SPAN></DIV></TD></TR>
<TR bgColor=#e7f6fd>
<TD width=11>
<DIV align=center><IMG height=7
src="E:\新建文件夹\C语言:黑客学员必修课之二 - 软件屋.files\index_rj16(1).gif"
width=7></DIV></TD>
<TD width=161>
<DIV align=left><SPAN class=style9><A class=A11
title="FTP Voyager 12.1.0.0"
onclick="window.open('http://soft.softhouse.com.cn/software/show/13665.html')"
href="http://www.softhouse.com.cn/news/show/2702.html#">FTP
Voyager 12.1.0.0 </A></SPAN></DIV></TD></TR>
<TR bgColor=#e7f6fd>
<TD width=11>
<DIV align=center><IMG height=7
src="E:\新建文件夹\C语言:黑客学员必修课之二 - 软件屋.files\index_rj16(1).gif"
width=7></DIV></TD>
<TD width=161>
<DIV align=left><SPAN class=style9><A class=A11
title="驱动程序备份工具 3.0"
onclick="window.open('http://soft.softhouse.com.cn/software/show/15280.html')"
href="http://www.softhouse.com.cn/news/show/2702.html#">驱动程序备份工具
3.0 </A></SPAN></DIV></TD></TR>
<TR bgColor=#e7f6fd>
<TD width=11>
<DIV align=center><IMG height=7
src="E:\新建文件夹\C语言:黑客学员必修课之二 - 软件屋.files\index_rj16(1).gif"
width=7></DIV></TD>
<TD width=161>
<DIV align=left><SPAN class=style9><A class=A11
title="Azureus for Windows 2.3.0.5 Beta 20"
onclick="window.open('http://soft.softhouse.com.cn/software/show/15473.html')"
href="http://www.softhouse.com.cn/news/show/2702.html#">Azureus
for Windows ... </A></SPAN></DIV></TD></TR>
<TR bgColor=#e7f6fd>
<TD width=11>
<DIV align=center><IMG height=7
src="E:\新建文件夹\C语言:黑客学员必修课之二 - 软件屋.files\index_rj16(1).gif"
width=7></DIV></TD>
<TD width=161>
<DIV align=left><SPAN class=style9><A class=A11
title=中国驿站音乐试听程序网络版
onclick="window.open('http://soft.softhouse.com.cn/software/show/26091.html')"
href="http://www.softhouse.com.cn/news/show/2702.html#">中国驿站音乐试听程序...
</A></SPAN></DIV></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD vAlign=top>
<DIV id=article>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD width=30> </TD>
<TD class=news-txt id=zoom style="FONT-SIZE: 14px"
align=left><BR>
<P></P>
<SCRIPT type=text/javascript>
<!--
ql_ad_width = '468'
ql_ad_height = '60'
ql_ad_id = '2006112115419375'
ql_site_id = '200605254061'
ql_site = '200605253961'
ql_ad_type ='14'
//-->
</SCRIPT>
<SCRIPT language=javascript
src="C语言:黑客学员必修课之二 - 软件屋.files/CommonJScript2.js"></SCRIPT>
<BR>
<P align=center><SPAN class=c6><BR>C语言:黑客学员必修课之二</SPAN></P>
<P><STRONG>第二章: 数据类型、运算符、表达式 </STRONG></P>
<P><BR> C语言的数据类型 </P>
<P> 在第一课中,我们已经看到程序中使用的各种变量都应预先加以说明,即先说明,后使用。对变量的说明可以包括三个方面:
</P>
<P> ?数据类型 </P>
<P> ?存储类型 </P>
<P> ?作用域 </P>
<P> 在本课中,我们只介绍数据类型说明。其它说明在以后各章中陆续介绍。所谓数据类型是按被说明量的性质,表示形式,占据存储空间的多少,构造特点来划分的。在C语言中,数据类型可分为:基本数据类型,构造数据类型,指针类型,空类型四大类。
</P>
<P> </P>
<P> 1.基本数据类型 </P>
<P> 基本数据类型最主要的特点是,其值不可以再分解为其它类型。也就是说,基本数据类型是自我说明的。 </P>
<P> </P>
<P> 2.构造数据类型构造数据类型 </P>
<P> 是根据已定义的一个或多个数据类型用构造的方法来定义的。也就是说,一个构造类型的值可以分解成若干个“成员”或“元素”。每个“成员”都是一个基本数据类型或又是一个构造类型。在C语言中,构造类型有以下几种:
</P>
<P> ?数组类型 </P>
<P> ?结构类型 </P>
<P> ?联合类型 </P>
<P> </P>
<P> 3.指针类型 </P>
<P> 指针是一种特殊的,同时又是具有重要作用的数据类型。其值用来表示某个量在内存储器中的地址。虽然指针变量的取值类似于整型量,但这是两个类型完全不同的量,因此不能混为一谈。4.空类型在调用函数值时,通常应向调用者返回一个函数值。这个返回的函数值是具有一定的数据类型的,应在函数定义及函数说明中给以说明,例如在例题中给出的max函数定义中,函数头为:
int max(int a,int b);其中“int ”类型说明符即表示该函数的返回值为整型量。又如在例题中,使用了库函数
sin,由于系统规定其函数返回值为双精度浮点型,因此在赋值语句s=sin (x);中,s
也必须是双精度浮点型,以便与sin函数的返回值一致。所以在说明部分,把s说明为双精度浮点型。但是,也有一类函数,调用后并不需要向调用者返回函数值,
这种函数可以定义为“空类型”。其类型说明符为void。在第五章函数中还要详细介绍。在本章中,我们先介绍基本数据类型中的整型、浮点型和字符型。其余类型在以后各章中陆续介绍。
</P>
<P> 对于基本数据类型量,按其取值是否可改变又分为常量和变量两种。在程序执行过程中,其值不发生改变的量称为常量,取值可变的量称为变量。它们可与数据类型结合起来分类。例如,可分为整型常量、整型变量、浮点常量、浮点变量、字符常量、字符变量、枚举常量、枚举变量。在程序中,常量是可以不经说明而直接引用的,而变量则必须先说明后使用。
</P>
<P> </P>
<P> 整型量 </P>
<P> </P>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -