﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>IT博客-欢迎光临</title><link>http://www.cnitblog.com/tryne/</link><description>我的一些人生感叹和我觉得还可以的计算机知识</description><language>zh-cn</language><lastBuildDate>Wed, 29 Apr 2026 05:58:32 GMT</lastBuildDate><pubDate>Wed, 29 Apr 2026 05:58:32 GMT</pubDate><ttl>60</ttl><item><title>Which   is  aim of mine  for life?</title><link>http://www.cnitblog.com/tryne/archive/2006/11/06/18896.html</link><dc:creator>朱娟</dc:creator><author>朱娟</author><pubDate>Mon, 06 Nov 2006 11:20:00 GMT</pubDate><guid>http://www.cnitblog.com/tryne/archive/2006/11/06/18896.html</guid><wfw:comment>http://www.cnitblog.com/tryne/comments/18896.html</wfw:comment><comments>http://www.cnitblog.com/tryne/archive/2006/11/06/18896.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/tryne/comments/commentRss/18896.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/tryne/services/trackbacks/18896.html</trackback:ping><description><![CDATA[          Some  times  i  feel  very  fidget,  but  i  didn't known what's wrong  with me? i  feel i haven't aim  of  my  life  one and then..i also  didn't known  how to  do  my  job ,let  that  do  good. i want  to go  home.because  i  think  i am  very loneliness in  there. <img src ="http://www.cnitblog.com/tryne/aggbug/18896.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/tryne/" target="_blank">朱娟</a> 2006-11-06 19:20 <a href="http://www.cnitblog.com/tryne/archive/2006/11/06/18896.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>个人求职页面</title><link>http://www.cnitblog.com/tryne/archive/2006/10/06/17688.html</link><dc:creator>朱娟</dc:creator><author>朱娟</author><pubDate>Fri, 06 Oct 2006 13:26:00 GMT</pubDate><guid>http://www.cnitblog.com/tryne/archive/2006/10/06/17688.html</guid><wfw:comment>http://www.cnitblog.com/tryne/comments/17688.html</wfw:comment><comments>http://www.cnitblog.com/tryne/archive/2006/10/06/17688.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/tryne/comments/commentRss/17688.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/tryne/services/trackbacks/17688.html</trackback:ping><description><![CDATA[
		<head>
				<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
				<title>首页</title>
				<style type="text/css">
						<!--
body {
	background-image: url(bgt015.gif);
	background-color: #FFCCFF;
}
body,td,th {
	font-family: 隶书, 华文中宋, 楷体_GB2312, 华文行楷, 华文新魏;
	font-size: medium;
	color: #00CCFF;
}
a {
	font-family: 方正舒体, 方正姚体;
	font-size: large;
	color: #FF6666;
}
a:link {
	text-decoration: none;
}
a:visited {
	text-decoration: none;
	color: #FF33FF;
}
a:hover {
	text-decoration: none;
	color: #FFCC99;
}
a:active {
	text-decoration: none;
	color: #FFCC00;
}
.style1 {
	font-family: "隶书", "华文中宋", "楷体_GB2312", "华文行楷", "华文新魏";
	font-size: 24px;
	font-weight: bold;
}
.style3 {
	font-family: "隶书", "华文中宋", "楷体_GB2312", "华文行楷", "华文新魏";
	font-size: 24px;
}
.style4 {
	font-size: 24px;
	font-weight: bold;
}
.style5 {
	font-size: 14px;
	font-weight: bold;
}
.style6 {font-size: 24px}
.style8 {color: #FF66FF}
.style10 {font-family: "隶书", "华文中宋", "楷体_GB2312", "华文行楷", "华文新魏"; font-size: 24px; color: #FF99FF; }
.style11 {font-size: 18px}
.style12 {font-family: "隶书", "华文中宋", "楷体_GB2312", "华文行楷", "华文新魏"; font-size: 18px; color: #FF99FF; }
.style13 {font-family: "黑体"}
.style14 {font-family: "黑体"; font-size: 18px; color: #FF99FF; }
-->
				</style>
		</head>
		<body>
				<table width="782" border="0" cellpadding="0" cellspacing="0">
						<!--DWLayoutTable-->
						<tr>
								<td width="284" height="597" valign="top">
										<table width="100%" border="0" cellpadding="0" cellspacing="0">
												<!--DWLayoutTable-->
												<tr>
														<td width="284" height="689" valign="top">
																<p align="center" class="style1"> </p>
																<p class="style1"> </p>
																<p align="center" class="style1">
																		<strong>我的自荐信</strong>
																</p>
																<p class="style12 style13"> 尊敬的领导： <br />
  　　您好！ <br />
  　　我是一名即将于 2006 年毕业的湖南大众传媒学院学生，所学专业是计算机。 <br />
  　　大学三年来，我学习刻苦，成绩优异，曾多次获得奖学金。在师友的严格教益和个人努力下，我具备了扎实的基础知识。成绩和人品也获得同学 和 老师的认可，一直以来都是严格要求自己，争做一个品学兼优的好学生。我也会将这一良好的习惯带到以后的工作上的，要做一个认真负责的工作人员，学习别人的优点，填补自己的缺点。 <br />
  若有幸加盟，我可以致力于贵公司的软件开发或根据公司的需要随时致力于某方面的工作和学习．</p>
																<p class="style14">　 “顺兮，逆兮，无阻我飞扬”是我的座右铭；“如临深渊，如履薄冰”是我的工作态度；“真诚，守信”是我的最大特点；开阔的胸襟使我获得许多朋友。聪明的头脑，创造的思维，开拓进取的坚韧，相信我是您的最佳选择．请您给我一次机会，我必将还您以夺目的光彩． 感谢您耐心的阅读了我的自荐信，如需要详细资料，请与我联系。 <br />
  敬候佳音！ </p>
																<p class="style14">自荐人：朱娟 <br />
  ２００５年 12 月 6 日 </p>
																<p class="style14">右边为我的个人简历，请看:</p>
														</td>
												</tr>
										</table>
								</td>
								<td width="490" valign="top">
										<table width="100%" border="0" cellpadding="0" cellspacing="0">
												<!--DWLayoutTable-->
												<tr>
														<td width="490" height="597" valign="top">
																<table width="479" height="264" border="1">
																		<tr>
																				<td width="71" height="48" class="style1">
																						<span class="style1">姓</span> 名 </td>
																				<td width="146">
																						<span class="style10">朱娟</span>
																				</td>
																				<td width="72">
																						<div align="center" class="style4">性别  </div>
																				</td>
																				<td width="162" class="style3 style8">女</td>
																		</tr>
																		<tr>
																				<td height="54">
																						<div align="center">
																								<span class="style4">出生年月</span>
																						</div>
																				</td>
																				<td>
																						<strong class="style10 style11">１９８４－１０－１４</strong>
																				</td>
																				<td>
																						<div align="center">
																								<span class="style4">名族</span>
																						</div>
																				</td>
																				<td class="style10">汉</td>
																		</tr>
																		<tr>
																				<td>
																						<div align="center">
																								<span class="style4">毕业院校 </span>
																						</div>
																				</td>
																				<td class="style10">湖南大众传媒学院</td>
																				<td>
																						<div align="center">
																								<span class="style1">专<strong>业</strong></span>
																						</div>
																				</td>
																				<td class="style10">网络技术</td>
																		</tr>
																		<tr>
																				<td>
																						<div align="center">
																								<span class="style4">通信地址 </span>
																						</div>
																				</td>
																				<td class="style10">湖南大众传媒７１＃信箱</td>
																				<td>
																						<div align="center">
																								<span class="style6">
																										<strong>政治面目 </strong>
																								</span>
																						</div>
																				</td>
																				<td class="style10">团员</td>
																		</tr>
																		<tr>
																				<td>
																						<div align="center">
																								<span class="style4">邮政邮编 </span>
																						</div>
																				</td>
																				<td class="style10">４１０１００</td>
																				<td>
																						<div align="center">
																								<span class="style1">
																										<strong>电子邮件 </strong>
																								</span>
																						</div>
																				</td>
																				<td class="style8">zhujuan20088888@163.com</td>
																		</tr>
																		<tr>
																				<td>
																						<div align="center">
																								<span class="style4">联系电话 </span>
																						</div>
																				</td>
																				<td class="style10">13469054170</td>
																				<td>
																						<div align="center">
																								<strong class="style1">求职意向 </strong>
																						</div>
																				</td>
																				<td class="style10">计算机相关、通信方面</td>
																		</tr>
																</table>
																<table width="480" border="1">
																		<tr>
																				<td width="470" height="60">
																						<p>
																								<strong class="style1">教育背景：</strong>
																						</p>
																						<p>　　　　<span class="style10">2000.9----2003.6 临湘二中 </span></p>
																						<p>
																								<span class="style10">　　2003.9----2006.6 湖南大众传媒学院 </span>
																						</p>
																				</td>
																		</tr>
																</table>
																<table width="478" border="1">
																		<tr>
																				<td width="468" height="129" class="style1">
																						<strong>主修课程 </strong> ：
                  <p class="style12">计算机基础、C 语言、C++、数据结构、ASP、网页制作三客（ FLASH 、FIREWORKS 、DREAMWEARVER ）、 SQL 、 JSP 、 XML 、 J2EE 、计算机网络、综合布线、网络设备等  </p></td>
																		</tr>
																</table>
																<table width="478" border="1">
																		<tr>
																				<td width="468" class="style1">
																						<strong>获奖情况</strong>：
                  <p class="style12">　　　2003----2004年度 获得奖学金和三好学生 </p><span class="style12">　　　2004----2005年度 获得奖学金和三好学生</span></td>
																		</tr>
																</table>
																<p> </p>
																<p> </p>
														</td>
												</tr>
										</table>
								</td>
								<td width="8"> </td>
						</tr>
						<tr>
								<td height="4">
								</td>
								<td>
								</td>
								<td>
								</td>
						</tr>
				</table>
				<table width="782" border="0" cellpadding="0" cellspacing="0">
						<!--DWLayoutTable-->
						<tr>
								<td width="782" height="25" valign="top">
										<div align="center" class="style1">
												<pre style="font-size: 12pt">现在时间是：2005年12月6日  1:50 PM      </pre>
										</div>
								</td>
						</tr>
						<tr>
								<td height="24" valign="top">
										<div align="center" class="style5">
												<pre>本站是我自己的个人网站　也是对于我自己的介绍　版权我所有</pre>
										</div>
								</td>
						</tr>
						<tr>
								<td height="25" valign="top">
										<div align="center">联系我:<a href="mailto:zhujuan20088888@163.com">zhujuan20088888@163.com</a> 　　　ＱＱ:276185095</div>
								</td>
						</tr>
				</table>
		</body>
<img src ="http://www.cnitblog.com/tryne/aggbug/17688.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/tryne/" target="_blank">朱娟</a> 2006-10-06 21:26 <a href="http://www.cnitblog.com/tryne/archive/2006/10/06/17688.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>网页设计中实用的制作技巧</title><link>http://www.cnitblog.com/tryne/archive/2006/09/25/17324.html</link><dc:creator>朱娟</dc:creator><author>朱娟</author><pubDate>Mon, 25 Sep 2006 12:48:00 GMT</pubDate><guid>http://www.cnitblog.com/tryne/archive/2006/09/25/17324.html</guid><wfw:comment>http://www.cnitblog.com/tryne/comments/17324.html</wfw:comment><comments>http://www.cnitblog.com/tryne/archive/2006/09/25/17324.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/tryne/comments/commentRss/17324.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/tryne/services/trackbacks/17324.html</trackback:ping><description><![CDATA[1、灵活运用样式 
<p>　　熟悉网页设计的网友就知道，调用Style的方法很多，我们可以单击鼠标右键选择Custon Style来调用Style标准，也可以在状态栏中的元素列表上单击右键来调用Style。虽然不同的方法达到的效果看似一样，但实际上产生的HTML代码则完全不同。比如用Custon Style来调用Style标准，在网页代码中就生成一个〈span〉标签，这样的标签一多就会使文件十分臃肿而且影响浏览器的解析速度，所以我们应尽量使用状态栏中的元素列表来调用Style。 </p><p>　　2、活用Format Table命令 </p><p>　　在复杂的网页设计中，表格的应用是最多的，因为利用表格可以自由地控制文本和图象在网页上出现的具体位置，从而使整个网页看上去紧凑统一。Dreamweaver在这方面也不甘落后，我们可以使用其中的“Format Table”(格式化表格)命令来快速地对表格应用预先设计好的样式。要使用预先设计好的样式，先将光标置于表格的任意一个单元格内，再选择“Command”→“Format Table”命令， 在随后出现的对话框中，从左边的列表中选择一个设计方案。按“Apply” 键来查看效果，如果不满意的话，还可以重新设置或者修改部分参数的值，如边界粗细，背景颜色等等。 </p><p>　　3、同时链接到两个网页 </p><p>　　我们都知道超级链接一次只能连到一个页面。如果我们要想一次在不同的框架页中打开文档，可以使用“Go To URL”JavaScript 行为。打开一个有框架的网页，选择文字或图象，然后从行为面板中选择“Go To URL”。我们会注意到Dreamweaver会在“Go To URL”对话框中显示所有可用的框架。选择其中一个我们想链接的框架并输入相应的URL后再选择另一个框架并输入另一个URL。 </p><p>　　4、不给文件起中文名称 </p><p>　　大家在制作好了网页后，通常会给网页起一个具有代表性的中文名称，一来能使人一看文件名就能大概了解文件所包含的内容，二来能够方便各个超级链接之间的相互调用。但如果你在Dreamweaver中这样做，就会发现Dreamweaver对中文文件名支持得不是太好，经常会有页面调用不正确的现象发生，所以我们以后在Dreamweaver中保存网页的时候，尽量用英文或者数字作为文件名称，这样就可以避免上面的出错现象。 </p><p>　　5、巧妙设置字体分辨率 </p><p>　　我们在制作网页的时候，经常有这种体会，那就是制作好的网页在本地计算机上浏览时很正常，但在另外一台计算机上浏览时发现原本漂亮的网页变得歪歪扭扭了，这是为什么呢?原来各个计算机的分辨率要使你的主页在不同的分辨率下都能正常显示，在 Dreamweaver中得到了较好的解决。在文档窗口的右下角，Dreamweaver 显示当前文档被设计成的分辨率大小。单击哪个数字，在弹出式菜单中可以为当前的页面指定显示分辨率，通过修改可以使你的主页更具灵活性。使不同分辨率的显示器都能较好地显示。<br /><br />6、巧妙隐藏标签 </p><p>　　如果在网页中插入了不可见的元素时，Dreamweaver会自动在页面上添加一个与之相应的元素标签，以便于我们选择不可见元素。但这并不全是件好事，比如我们在一个有很多层的页面中的第一行便插入一个表格，就会发现由于首行排列了太多的层元素标签而使得表格自动退到了页面的第二行，虽然在浏览时并不影响效果，但这确确实实会阻碍我们的工作。所以当我们觉得某个元素标签碍手碍脚时，就索性将之屏蔽掉。方法是按Ctrl+U打开Preferences面板，在Category中选中Invisibel Elements，在面板的右边将会出现所有的元素标签。只要将不需要的元素标签前的勾去掉，以后它就保证不会再出现了。 </p><p>　　7、善用拖放技巧 </p><p>　　我们在使用Dreamweaver编辑网页的时候，经常需要插入一些图象什么的，假设要插入的图象很多，按照常规方法来操作就显得非常麻烦。我们可以利用拖放技巧来很好地解决这个问题。首先我们把Dreamweaver的操作窗口变成活动窗口，以腾出空间来显示Explorer窗口，找到要插入的图象文件后，把它们一一用鼠标拖动到网页的适当部位，Dreamweaver将自动把这些图象的url添加到文件的HTML代码中，当然这里要求被拖动的图象文件必须是gif、jpg等web图象格式的文件。对于已经在网页中的图象也是一样，直接拖过来就可以了。但如果被拖动的图象上有超级链接，就不可以再使用拖动技术了，因为那时拖过来的仅仅是超级链接地址。 </p><p>　　8、自动设置更新时间 </p><p>　　我们知道一个网页要想获得更多的回头率，一个很重要的一条就是要不断更新。但对于我们这些个人网页来说，要天天及时更新恐怕不是很容易的事情。因此，我们希望网页能自动更新，下面笔者就提供一个能自动更新修改时间的源代码，我们只要把这段源代码添加到…＜ /BODY＞之间就能实现更新时间的目的了: </p><p>　　＜ Script Language="JavaScript"＞ ＜ /script＞;二是用鼠标依次单击Dreamweaver中的Text/Custom Style/Edit/Style Sheet/New/Redefine HTML Tag，并从中选择a，然后在decoration中选中none，最后单击确定就成功了。 <br /><br /><br />　9、巧妙复制文字 　　 </p><p>　　在几个不同的应用程序中间相互复制文字，是我们在实际工作中可能要常做的事情。但是，如果我们从Dreamweaver中复制编辑区中的文字到另外一个应用程序的时候，HTML代码和文字将一起被复制过去了，那么我们该如何才能只把编辑区中的文字复制下来呢?我们知道，通常复制时都用快捷键 Ctrl - C 来操作，如果我们在复制的时候多按一个C键，那么Dreamweaver将只会复制选中的文字了。 </p><p>　　10、善用快捷键 </p><p>　　为了提高操作的效率，我们可以在Dreamweaver中使用快捷键，例如使用Ctrl-B或Ctrl-I来为文字应用黑体或斜体格式，也可以使用以下一些键盘快捷键来为选中的文本应用HTML格式:Ctrl-0: 无格式 Ctrl-T: 段落 Ctrl-1: 标题 1 Ctrl-2: 标题 2 Ctrl-3: 标题 3 Ctrl-4: 标题 4 Ctrl-5: 标题 5 Ctrl-6: 标题 6 </p><p>　　11、自动关闭网页 </p><p>　　如果我们希望自己的网页在指定的时间内能自动关闭，不妨在网页源代码中的标签后面加入如下代码: ＜ script LANGUAGE="JavaScript"＞ ＜ /script＞其中代码中的3000表示3秒钟，它是以毫秒为单位的。 </p><p>　　12、巧妙设置对象名称 </p><p>　　我们在用Dreamweaver来制作非常复杂的效果时，有可能需要经常重复地使用某一个或者多个对象，例如我们经常需要定位某个特定的表格、图象等，如果我们没有给某一个网页中的多个对象取名的话，那么在重复应用这些对象的时候，可能很麻烦或者容易出错。为了能够方便调用这些对象，我们应该在每创建一个新的对象时，都记得给它取一个有代表性而且比较容易记忆的名称。在给这些对象命名时，我们可以通过对象的“属性”面板来操作就行了。 </p><p>　　13、为图象链接增加动态效果 </p><p>　　有时我们为了要达到一种逼真的效果，希望鼠标移动到某个链接上时能有动感产生。使用Dreamweaver可以很容易实现这种效果。设计时，我们首先需要准备两幅图象，第一幅是原始图象，第二幅是鼠标移动上去后的图象。接着用鼠标单击第一幅图，在属性面板中的链接栏中填上要链接的文件，然后单击键盘上的F8键，在弹出的Behaviors窗口中单击“+”号，随后选择“swap image”，在接着出现的窗口中选择第二幅图象，最后单击确定就可以了。</p><img src ="http://www.cnitblog.com/tryne/aggbug/17324.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/tryne/" target="_blank">朱娟</a> 2006-09-25 20:48 <a href="http://www.cnitblog.com/tryne/archive/2006/09/25/17324.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>欢迎光临Tryne的家</title><link>http://www.cnitblog.com/tryne/archive/2006/09/25/17323.html</link><dc:creator>朱娟</dc:creator><author>朱娟</author><pubDate>Mon, 25 Sep 2006 12:14:00 GMT</pubDate><guid>http://www.cnitblog.com/tryne/archive/2006/09/25/17323.html</guid><wfw:comment>http://www.cnitblog.com/tryne/comments/17323.html</wfw:comment><comments>http://www.cnitblog.com/tryne/archive/2006/09/25/17323.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/tryne/comments/commentRss/17323.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/tryne/services/trackbacks/17323.html</trackback:ping><description><![CDATA[
		<html>
				<body bgcolor="yellow">
						<div style="LEFT: 100px; POSITION: absolute; TOP: 70px">
								<table cellspacing="0" cellpadding="0" width="550" border="0">
										<tbody>
												<tr>
														<td>
																<a href="/tryne/" target="_blank">
																		<font color="#ff00ff">首页</font>
																</a>
																<a href="/tryne/admin/EditArticles.aspx" target="_blank">
																		<font color="#ff00ff">文章</font>
																</a>
																<a href="/tryne/admin/Feedback.aspx" target="_blank">
																		<font color="#ff00ff">评论</font>
																</a>
																<a href="/tryne/admin/EditGalleries.aspx" target="_blank">
																		<font color="#ff00ff">相册</font>
																</a>
																<a href="/tryne/admin/Files.aspx" target="_blank">
																		<font color="#ff00ff">文件</font>
																</a>
																<a href="" target="_blank">
																		<font color="#ff00ff">随笔</font>
																</a>
														</td>
												</tr>
										</tbody>
								</table>
						</div>
				</body>
		</html>
<img src ="http://www.cnitblog.com/tryne/aggbug/17323.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/tryne/" target="_blank">朱娟</a> 2006-09-25 20:14 <a href="http://www.cnitblog.com/tryne/archive/2006/09/25/17323.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>ASP数据库简单操作教程</title><link>http://www.cnitblog.com/tryne/archive/2006/09/18/17004.html</link><dc:creator>朱娟</dc:creator><author>朱娟</author><pubDate>Mon, 18 Sep 2006 11:10:00 GMT</pubDate><guid>http://www.cnitblog.com/tryne/archive/2006/09/18/17004.html</guid><wfw:comment>http://www.cnitblog.com/tryne/comments/17004.html</wfw:comment><comments>http://www.cnitblog.com/tryne/archive/2006/09/18/17004.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/tryne/comments/commentRss/17004.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/tryne/services/trackbacks/17004.html</trackback:ping><description><![CDATA[
		<html>
				<body bgcolor="black">
						<layer top="10" clip="0,0,1,1" bgcolor="#ffffff" visibility="show" left="10" name="a0">
						</layer>
						<layer top="10" clip="0,0,1,1" bgcolor="#fff000" visibility="show" left="10" name="a1">
						</layer>
						<layer top="10" clip="0,0,1,1" bgcolor="#ffa000" visibility="show" left="10" name="a2">
						</layer>
						<layer top="10" clip="0,0,1,1" bgcolor="#ff00ff" visibility="show" left="10" name="a3">
						</layer>
						<layer top="10" clip="0,0,1,1" bgcolor="#00ff00" visibility="show" left="10" name="a4">
						</layer>
						<layer top="10" clip="0,0,1,1" bgcolor="#ff00ff" visibility="show" left="10" name="a5">
						</layer>
						<layer top="10" clip="0,0,1,1" bgcolor="#ff0000" visibility="show" left="10" name="a6">
						</layer>
						<layer top="10" clip="0,0,1,1" bgcolor="#ffffff" visibility="show" left="10" name="a7">
						</layer>
						<layer top="10" clip="0,0,1,1" bgcolor="#fff000" visibility="show" left="10" name="a8">
						</layer>
						<layer top="10" clip="0,0,1,1" bgcolor="#ffa000" visibility="show" left="10" name="a9">
						</layer>
						<layer top="10" clip="0,0,1,1" bgcolor="#ff00ff" visibility="show" left="10" name="a10">
						</layer>
						<layer top="10" clip="0,0,2,2" bgcolor="#00ff00" visibility="show" left="10" name="a11">
						</layer>
						<layer top="10" clip="0,0,2,2" bgcolor="#0000ff" visibility="show" left="10" name="a12">
						</layer>
						<layer top="10" clip="0,0,2,2" bgcolor="#ff0000" visibility="show" left="10" name="a13">
						</layer>
						<div id="starsDiv" style="LEFT: 0px; POSITION: absolute; TOP: 0px">
								<div style="FONT-SIZE: 2px; BACKGROUND: #ffffff; WIDTH: 2px; POSITION: relative; HEIGHT: 2px">
								</div>
								<div style="FONT-SIZE: 1px; BACKGROUND: #fff000; WIDTH: 1px; POSITION: relative; HEIGHT: 1px">
								</div>
								<div style="FONT-SIZE: 1px; BACKGROUND: #ffa000; WIDTH: 1px; POSITION: relative; HEIGHT: 1px">
								</div>
								<div style="FONT-SIZE: 1px; BACKGROUND: #ff00ff; WIDTH: 1px; POSITION: relative; HEIGHT: 1px">
								</div>
								<div style="FONT-SIZE: 1px; BACKGROUND: #00ff00; WIDTH: 1px; POSITION: relative; HEIGHT: 1px">
								</div>
								<div style="FONT-SIZE: 1px; BACKGROUND: #0000ff; WIDTH: 1px; POSITION: relative; HEIGHT: 1px">
								</div>
								<div style="FONT-SIZE: 1px; BACKGROUND: #ff0000; WIDTH: 1px; POSITION: relative; HEIGHT: 1px">
								</div>
								<div style="FONT-SIZE: 1px; BACKGROUND: #ffffff; WIDTH: 1px; POSITION: relative; HEIGHT: 1px">
								</div>
								<div style="FONT-SIZE: 1px; BACKGROUND: #fff000; WIDTH: 1px; POSITION: relative; HEIGHT: 1px">
								</div>
								<div style="FONT-SIZE: 1px; BACKGROUND: #ffa000; WIDTH: 1px; POSITION: relative; HEIGHT: 1px">
								</div>
								<div style="FONT-SIZE: 1px; BACKGROUND: #ff00ff; WIDTH: 1px; POSITION: relative; HEIGHT: 1px">
								</div>
								<div style="FONT-SIZE: 2px; BACKGROUND: #ff00ff; WIDTH: 2px; POSITION: relative; HEIGHT: 2px">
								</div>
								<div style="FONT-SIZE: 1px; BACKGROUND: #0000ff; WIDTH: 1px; POSITION: relative; HEIGHT: 1px">
								</div>
								<div style="FONT-SIZE: 1px; BACKGROUND: #ff0000; WIDTH: 1px; POSITION: relative; HEIGHT: 1px">
								</div>
						</div>
						<script language="JavaScript">
								<!-- Begin
var Clrs = new Array(9);
Clrs[0] = 'ff0000';
Clrs[1] = '00ff00';
Clrs[2] = '000aff';
Clrs[3] = 'ff00ff';
Clrs[4] = 'ffa500';
Clrs[5] = 'ffff00';
Clrs[6] = '00ff00';
Clrs[7] = 'ffffff';
Clrs[8] = 'fffff0';
var sClrs = new Array(5);
sClrs[0] = 'ffa500';
sClrs[1] = '55ff66';
sClrs[2] = 'AC9DFC';
sClrs[3] = 'fff000';
sClrs[4] = 'fffff0';
var yBase;
var xBase;
var step;
var currStep = 0;
var Xpos = 1;
var Ypos = 1;
var initialStarColor = 'ffa000';
var Mtop = 250;
var Mleft = 250;
function Fireworks() {
if (document.all) {
yBase = window.document.body.offsetHeight / 3;
xBase = window.document.body.offsetWidth / 8;
}
else if (document.layers) {
yBase = window.innerHeight / 3;
xBase = window.innerWidth / 8;
}
if (document.all) {
step = 5;
for ( i = 0 ; i < starsDiv.all.length ; i++ ) {
for (ai = 0; ai < Clrs.length; ai++) {
var c = Math.round(Math.random()*[ai]);
}
if (currStep < 90)
starsDiv.all[i].style.background=initialStarColor;
if (currStep > 90)
starsDiv.all[i].style.background=Clrs[c];
starsDiv.all[i].style.top = Mtop + yBase*Math.sin((currStep+i*5)/3)*Math.sin(550+currStep/100)
starsDiv.all[i].style.left = Mleft + yBase*Math.cos((currStep+i*5)/3)*Math.sin(550+currStep/100)
   }
}
else if (document.layers) {
step = 5;
for ( j = 0 ; j < 24 ; j++ ) { //number of NS layers!
var templayer = "a"+j;
for (ai = 0; ai < Clrs.length; ai++) {
var c = Math.round(Math.random()*[ai]);
}
if (currStep < 90)
document.layers[templayer].bgColor=initialStarColor;
if (currStep > 90)
document.layers[templayer].bgColor=Clrs[c];
document.layers[templayer].top = Mtop + yBase*Math.sin((currStep+j*5)/3)*Math.sin(550+currStep/100)
document.layers[templayer].left = Mleft + yBase*Math.cos((currStep+j*5)/3)*Math.sin(550+currStep/100)
   }
}
currStep+= step;
T=setTimeout("Fireworks()",5);
if (currStep == 220) {
currStep = -10;
for (n = 0; n < sClrs.length; n++) {
var k = Math.round(Math.random()*n);
}
initialStarColor = sClrs[k];
if (document.all) {
Dtop = window.document.body.clientHeight - 250;
Dleft = xBase * 3.5;
Mtop = Math.round(Math.random()*Dtop);
Mleft = Math.round(Math.random()*Dleft);
document.all.starsDiv.style.top = Mtop+document.body.scrollTop;
document.all.starsDiv.style.left = Mleft+document.body.scrollLeft;
}
else if (document.layers) {
Dleft = window.innerWidth - 100;
Dtop = window.innerHeight - 100;
Mtop = Math.round(Math.random()*Dtop+window.pageYOffset);
Mleft = Math.round(Math.random()*Dleft+window.pageXOffset);
document.layers[templayer].top = Mtop;
document.layers[templayer].left = Mleft;
}
if ((Mtop < 20) || (Mleft < 20)) {
Mtop += 90;
Mleft += 90;
      } 
   }
}
Fireworks();
//  End -->
						</script>
						<font color="red" size="3">&lt;1&gt;数据库连接(用来单独编制连接文件conn.asp) &lt;% Set conn = Server.CreateObject("ADODB.Connection") conn.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" &amp; Server.MapPath("\bbs\db1\user.mdb") %&gt; (用来连接bbs\db1\目录下的user.mdb数据库) &lt;2&gt;显示数据库记录 原理：将数据库中的记录一一显示到客户端浏览器，依次读出数据库中的每一条记录 如果是从头到尾：用循环并判断指针是否到末 使用: not rs.eof 如果是从尾到头：用循环并判断指针是否到开始 使用：not rs.bof <!--#include file=conn.asp-->(包含conn.asp用来打开bbs\db1\目录下的user.mdb数据库) &lt;% set rs=server.CreateObject("adodb.recordset") (建立recordset对象) sqlstr="select * from message" ----&gt;(message为数据库中的一个数据表，即你要显示的数据所存放的数据表) rs.open sqlstr,conn,1,3 ----&gt;(表示打开数据库的方式) rs.movefirst ----&gt;(将指针移到第一条记录) while not rs.eof ----&gt;(判断指针是否到末尾) response.write(rs("name")) ----&gt;(显示数据表message中的name字段) rs.movenext ----&gt;(将指针移动到下一条记录) wend ----&gt;(循环结束) ------------------------------------------------------ rs.close conn.close 这几句是用来关闭数据库 set rs=nothing set conn=nothing ------------------------------------------------------- %&gt; 其中response对象是服务器向客户端浏览器发送的信息 &lt;3&gt;增加数据库记录 增加数据库记录用到rs.addnew,rs.update两个函数 <!--#include file=conn.asp-->(包含conn.asp用来打开bbs\db1\目录下的user.mdb数据库) &lt;% set rs=server.CreateObject("adodb.recordset") (建立recordset对象) sqlstr="select * from message" ----&gt;(message为数据库中的一个数据表，即你要显示的数据所存放的数据表) rs.open sqlstr,conn,1,3 ----&gt;(表示打开数据库的方式) rs.addnew 新增加一条记录 rs("name")="xx" 将xx的值传给name字段 rs.update 刷新数据库 ------------------------------------------------------ rs.close conn.close 这几句是用来关闭数据库 set rs=nothing set conn=nothing ------------------------------------------------------- %&gt; &lt;4&gt;删除一条记录 删除数据库记录主要用到rs.delete,rs.update <!--#include file=conn.asp-->(包含conn.asp用来打开bbs\db1\目录下的user.mdb数据库) &lt;% dim name name="xx" set rs=server.CreateObject("adodb.recordset") (建立recordset对象) sqlstr="select * from message" ----&gt;(message为数据库中的一个数据表，即你要显示的数据所存放的数据表) rs.open sqlstr,conn,1,3 ----&gt;(表示打开数据库的方式) ------------------------------------------------------- while not rs.eof if rs.("name")=name then rs.delete rs.update 查询数据表中的name字段的值是否等于变量name的值"xx"，如果符合就执行删除， else 否则继续查询,直到指针到末尾为止 rs.movenext end if wend ------------------------------------------------------ ------------------------------------------------------ rs.close conn.close 这几句是用来关闭数据库 set rs=nothing set conn=nothing ------------------------------------------------------- %&gt; &lt;5&gt;关于数据库的查询 (a) 查询字段为字符型 &lt;% dim user,pass,qq,mail,message user=request.Form("user") pass=request.Form("pass") qq=request.Form("qq") mail=request.Form("mail") message=request.Form("message") if trim(user)&amp;"x"="x" or trim(pass)&amp;"x"="x" then (检测user值和pass值是否为空，可以检测到空格) response.write("注册信息不能为空") else set rs=server.CreateObject("adodb.recordset") sqlstr="select * from user where user='"&amp;user&amp;"'" (查询user数据表中的user字段其中user字段为字符型) rs.open sqlstr,conn,1,3 if rs.eof then rs.addnew rs("user")=user rs("pass")=pass rs("qq")=qq rs("mail")=mail rs("message")=message rs.update rs.close conn.close set rs=nothing set conn=nothing response.write("注册成功") end if rs.close conn.close set rs=nothing set conn=nothing response.write("注册重名") %&gt; (b)查询字段为数字型 &lt;% dim num num=request.Form("num") set rs=server.CreateObject("adodb.recordset") sqlstr="select * from message where id="&amp;num (查询message数据表中id字段的值是否与num相等，其中id为数字型) rs.open sqlstr,conn,1,3 if not rs.eof then rs.delete rs.update rs.close conn.close set rs=nothing set conn=nothing response.write("删除成功") end if rs.close conn.close set rs=nothing set conn=nothing response.write("删除失败") %&gt; &lt;6&gt;几个简单的asp对象的讲解 response对象:服务器端向客户端发送的信息对象,包括直接发送信息给浏览器,重新定向URL，或设置cookie值 request对象:客户端向服务器提出的请求 session对象:作为一个全局变量，在整个站点都生效 server对象：提供对服务器上方法和属性的访问 (a) response对象的一般使用方法 比如： &lt;% response .write("hello, welcome to asp!") %&gt; 在客户端浏览器就会看到 hello, welcome to asp! 这一段文字 &lt;% response.Redirect("www.sohu.com") %&gt; 如果执行这一段，则浏览器就会自动连接到 “搜狐” 的网址 关于response对象的用法还有很多，大家可以研究研究 request对象的一般使用方法比如客户端向服务器提出的请求就是通过request对象来传递的列如 ：你在申请邮箱的所填写的个人信息就是通过该对象来将 你所填写的信息传递给服务器的比如：这是一段表单的代码，这是提供给客户填写信息的，填写完了按 “提交”传递给request.asp文件处理后再存入服务器数据库 
//<form name="form1" action="request.asp" method="post"><p><input name="user" /></p><p><input name="pass" /></p><p><input type="submit" value="提交" name="Submit" /></p></form>//那么request.asp该如何将其中的信息读入，在写入数据库，在这里就要用到 request对象了，下面我们就来分析request.asp的写法 &lt;% dim name,password (定义user和password两个变量) name=request.form(“user”) (将表单中的user信息传给变量name) password=request.form(“pass”) (将表单中的pass信息传给变量password) %&gt; </font>
				</body>
		</html>
<img src ="http://www.cnitblog.com/tryne/aggbug/17004.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/tryne/" target="_blank">朱娟</a> 2006-09-18 19:10 <a href="http://www.cnitblog.com/tryne/archive/2006/09/18/17004.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>社会需要我们去适应,而不是它来适应我们!</title><link>http://www.cnitblog.com/tryne/archive/2006/09/18/17003.html</link><dc:creator>朱娟</dc:creator><author>朱娟</author><pubDate>Mon, 18 Sep 2006 10:47:00 GMT</pubDate><guid>http://www.cnitblog.com/tryne/archive/2006/09/18/17003.html</guid><wfw:comment>http://www.cnitblog.com/tryne/comments/17003.html</wfw:comment><comments>http://www.cnitblog.com/tryne/archive/2006/09/18/17003.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/tryne/comments/commentRss/17003.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/tryne/services/trackbacks/17003.html</trackback:ping><description><![CDATA[
		<html>
				<body>
						<font style="FONT-SIZE: 12pt; FILTER: Shadow(color=#4A7AC9,direction=135); HEIGHT: 19pt" face="Verdana" color="#ffffff">
每当有人问我,上班的感觉怎样?我都是笑笑回答说:没什么很大的感觉就是这样的,你如果要问我是学校好,还是在外面好.我会毫不犹豫的告诉你,在学校肯定要好啊,那里的很单纯没社会复杂啊,但是人终究是要踏入社会的啊,一个人要想在社会上立足那么就要学会去适应它,不用任何理由的,因你要生存,我们也要好好的去研究这个很让人难以琢磨的社会.</font>
				</body>
		</html>
<img src ="http://www.cnitblog.com/tryne/aggbug/17003.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/tryne/" target="_blank">朱娟</a> 2006-09-18 18:47 <a href="http://www.cnitblog.com/tryne/archive/2006/09/18/17003.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>提前的祝福~~~~~国庆节快乐!   ~~!~~</title><link>http://www.cnitblog.com/tryne/archive/2006/09/15/16902.html</link><dc:creator>朱娟</dc:creator><author>朱娟</author><pubDate>Fri, 15 Sep 2006 12:13:00 GMT</pubDate><guid>http://www.cnitblog.com/tryne/archive/2006/09/15/16902.html</guid><wfw:comment>http://www.cnitblog.com/tryne/comments/16902.html</wfw:comment><comments>http://www.cnitblog.com/tryne/archive/2006/09/15/16902.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/tryne/comments/commentRss/16902.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/tryne/services/trackbacks/16902.html</trackback:ping><description><![CDATA[Error convertoring HTML to XHTML: System.ArgumentException: Cannot have ']]&gt;' inside an XML CDATA block.
   at System.Xml.XmlTextWriter.WriteCData(String text)
   at System.Xml.XmlWriter.WriteNode(XmlReader reader, Boolean defattr)
   at FreeTextBoxControls.Support.Formatter.HtmlToXhtml(String input)<img src ="http://www.cnitblog.com/tryne/aggbug/16902.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/tryne/" target="_blank">朱娟</a> 2006-09-15 20:13 <a href="http://www.cnitblog.com/tryne/archive/2006/09/15/16902.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>上班两周感想</title><link>http://www.cnitblog.com/tryne/archive/2006/09/15/16900.html</link><dc:creator>朱娟</dc:creator><author>朱娟</author><pubDate>Fri, 15 Sep 2006 11:40:00 GMT</pubDate><guid>http://www.cnitblog.com/tryne/archive/2006/09/15/16900.html</guid><wfw:comment>http://www.cnitblog.com/tryne/comments/16900.html</wfw:comment><comments>http://www.cnitblog.com/tryne/archive/2006/09/15/16900.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/tryne/comments/commentRss/16900.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/tryne/services/trackbacks/16900.html</trackback:ping><description><![CDATA[
		<table style="BORDER-RIGHT: #000000 1px; BORDER-TOP: #000000 1px; BORDER-LEFT: #000000 1px; WIDTH: 760px; BORDER-BOTTOM: #000000 1px; BACKGROUND-COLOR: #ffff00; layer-background-color: #CCCCCC">
				<tbody>
						<tr>
								<td>
										<font style="FONT-SIZE: 22pt">不知不觉就上班两周了,在这两周里我觉得时间过得很快,可能是因为比较忙吧,因为刚出来参加工作很多东西都需要去发时间熟悉,还有就是前任同事留下很多工作没做,那这些工作肯定要花时间去处理的,但是我觉得很多事情包括工作你只要多花心思和时间在上面就没有做不好的,做事要用心,认真细致.所有我在此就发表下我个人的建议:一个人在一个工作岗位上一定要带着做好它的思想,千万不要想着自己做不好或是随便做做好了,那我就可以明确告诉你,你错了那样你很难达到自己想要的境界,每一个人都要为自己的理想奋斗,既然选择了就要好好的做!但愿我们每个人都可以早日达到自己的理想!祝愿每个人都Good LOOK! ~!~</font>
								</td>
								<td>
								</td>
						</tr>
				</tbody>
		</table>
<img src ="http://www.cnitblog.com/tryne/aggbug/16900.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/tryne/" target="_blank">朱娟</a> 2006-09-15 19:40 <a href="http://www.cnitblog.com/tryne/archive/2006/09/15/16900.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>学好C语言的方法和注意点。</title><link>http://www.cnitblog.com/tryne/archive/2006/09/13/16807.html</link><dc:creator>朱娟</dc:creator><author>朱娟</author><pubDate>Wed, 13 Sep 2006 11:59:00 GMT</pubDate><guid>http://www.cnitblog.com/tryne/archive/2006/09/13/16807.html</guid><wfw:comment>http://www.cnitblog.com/tryne/comments/16807.html</wfw:comment><comments>http://www.cnitblog.com/tryne/archive/2006/09/13/16807.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.cnitblog.com/tryne/comments/commentRss/16807.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/tryne/services/trackbacks/16807.html</trackback:ping><description><![CDATA[一、<font color="#7fffd4">学好C语言的运算符和运算顺序</font><br />    这是学好《C程序设计》的基础，C语言的运算非常灵活，功能十分丰富，运算种类远多于其它程序设计语言。在表达式方面较其它程序语言更为简洁，如自加、自减、逗号运算和三目运算使表达式更为简单，但初学者往往会觉的这种表达式难读，关键原因就是对运算符和运算顺序理解不透不全。当多种不同运算组成一个运算表达式，即一个运算式中出现多种运算符时，运算的优先顺序和结合规则显得十分重要。在学习中，只要我们对此合理进行分类，找出它们与我们在数学中所学到运算之间的不同点之后，记住这些运算也就不困难了，有些运算符在理解后更会牢记心中，将来用起来得心应手，而有些可暂时放弃不记，等用到时再记不迟。 <br />    先要明确运算符按优先级不同分类，《C程序设计》运算符可分为15种优先级，从高到低，优先级为1 ~ 15，除第2、3级和第14级为从右至左结合外，其它都是从左至右结合，它决定同级运算符的运算顺序。下面我们通过几个例子来说明： <br />（1） 5*8/4%10 这个表达式中出现3种运算符，是同级运算符，运算顺序按从左至右结合，因此先计算5 *8=40，然后被4除，结果为10，最后是%（求余数）运算，所以表达式的最终结果为10%10 = 0；<br />（2）a = 3;b = 5;c =++ a* b ；d =a + +* b；<br />    对于c=++a*b来说，按表中所列顺序，+ +先执行，*后执行，所以+ + a执行后，a的值为4，由于+ +为前置运算，所以a的值4参与运算，C的值计算式为4*5=20而不是3*5=15了；而对于d=a++*b来说，由于a + +为后置运算，所以a值为4参与运算，使得d的值仍为20，而a参与运算后其值加1，值为5。 这个例子执行后，a的值为5，b的值为5，c的值为20，d的值也是20；<br />（3）（a = 3，b = 5，b+ = a，c = b* 5） <br />    例子中的“，”是逗号结合运算，上式称为逗号表达式，自左向右结合，最后一个表达式的结果值就是逗号表达式的结果，所以上面的逗号表达式结果为40，a的值为3，b的值为8，c的值为40。 <br />（4）a=5;b=6;c=a&gt;b?a:b;<br />    例中的a&gt;b?a:b是一个三目运算，它的功能是先做关系运算a&gt;b部分，若结果为真，则取问号后a的值，否则取冒号后b的值，因此c的值应该为6，这个运算可以用来代替if…else…语句的简单应用。<br />二．<font color="#7fffd4">学好C语言的四种程序结构</font><br />（1）顺序结构 <br />    顺序结构的程序设计是最简单的，只要按照解决问题的顺序写出相应的语句就行，它的执行顺序是自上而下，依次执行。 <br />例如；a = 3，b = 5，现交换a，b的值，这个问题就好象交换两个杯子水，这当然要用到第三个杯子，假如第三个杯子是c，那么正确的程序为： c = a； a = b； b = c； 执行结果是a = 5，b = c = 3如果改变其顺序，写成：a = b； c = a； b = c； 则执行结果就变成a = b = c = 5，不能达到预期的目的，初学者最容易犯这种错误。 顺序结构可以独立使用构成一个简单的完整程序，常见的输入、计算，输出三步曲的程序就是顺序结构，例如计算圆的面积，其程序的语句顺序就是输入圆的半径r，计算s = 3.14159*r*r,输出圆的面积s。不过大多数情况下顺序结构都是作为程序的一部分，与其它结构一起构成一个复杂的程序，例如分支结构中的复合语句、循环结构中的循环体等。 <br />（2） 分支结构 <br />    顺序结构的程序虽然能解决计算、输出等问题，但不能做判断再选择。对于要先做判断再选择的问题就要使用分支结构。分支结构的执行是依据一定的条件选择执行路径，而不是严格按照语句出现的物理顺序。分支结构的程序设计方法的关键在于构造合适的分支条件和分析程序流程，根据不同的程序流程选择适当的分支语句。分支结构适合于带有逻辑或关系比较等条件判断的计算，设计这类程序时往往都要先绘制其程序流程图，然后根据程序流程写出源程序，这样做把程序设计分析与语言分开，使得问题简单化，易于理解。程序流程图是根据解题分析所绘制的程序执行流程图。 <br />学习分支结构不要被分支嵌套所迷惑，只要正确绘制出流程图，弄清各分支所要执行的功能，嵌套结构也就不难了。嵌套只不过是分支中又包括分支语句而已，不是新知识，只要对双分支的理解清楚，分支嵌套是不难的。下面我介绍几种基本的分支结构。 <br />①if(条件) <br />{ <br />分支体 <br />} <br />这种分支结构中的分支体可以是一条语句，此时“{ }”可以省略，也可以是多条语句即复合语句。它有两条分支路径可选，一是当条件为真，执行分支体，否则跳过分支体，这时分支体就不会执行。如：要计算x的绝对值，根据绝对值定义，我们知道，当x&gt;=0时，其绝对值不变，而x&lt;0时其绝对值是为x的反号，因此程序段为：if(x&lt;0) x=-x; <br />②if(条件) <br />{分支1} <br />else <br />{分支2} <br />这是典型的分支结构，如果条件成立，执行分支1，否则执行分支2，分支1和分支2都可以是1条或若干条语句构成。如：求ax^2+bx+c=0的根 <br />分析：因为当b^2-4ac&gt;=0时,方程有两个实根，否则（b^2-4ac&lt;0）有两个共轭复根。其程序段如下：<br /> 
<div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://www.cnitblog.com/images/OutliningIndicators/None.gif" align="top" /><span style="COLOR: #000000">d</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">b</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">b</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">4</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">a</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">c; <br /><img src="http://www.cnitblog.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">(d</span><span style="COLOR: #000000">&gt;=</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">) <br /><img id="Codehighlighter1_24_106_Open_Image" onclick="this.style.display='none'; Codehighlighter1_24_106_Open_Text.style.display='none'; Codehighlighter1_24_106_Closed_Image.style.display='inline'; Codehighlighter1_24_106_Closed_Text.style.display='inline';" src="http://www.cnitblog.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_24_106_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_24_106_Closed_Text.style.display='none'; Codehighlighter1_24_106_Open_Image.style.display='inline'; Codehighlighter1_24_106_Open_Text.style.display='inline';" src="http://www.cnitblog.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /></span><span id="Codehighlighter1_24_106_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cnitblog.com/images/dot.gif" /></span><span id="Codehighlighter1_24_106_Open_Text"><span style="COLOR: #000000">{x1</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">(</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">b</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">sqrt(d))</span><span style="COLOR: #000000">/</span><span style="COLOR: #000000">2a; <br /><img src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align="top" />x1</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">(</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">b</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">sqrt(d))</span><span style="COLOR: #000000">/</span><span style="COLOR: #000000">2a; <br /><img src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align="top" />printf(“x1</span><span style="COLOR: #000000">=%</span><span style="COLOR: #000000">8.4f</span><span style="COLOR: #000000">,x2</span><span style="COLOR: #000000">=%</span><span style="COLOR: #000000">8.4f</span><span style="COLOR: #000000">\n”,x1,x2); <br /><img src="http://www.cnitblog.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />}</span></span><span style="COLOR: #000000"> <br /><img src="http://www.cnitblog.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff">else</span><span style="COLOR: #000000"> <br /><img id="Codehighlighter1_115_217_Open_Image" onclick="this.style.display='none'; Codehighlighter1_115_217_Open_Text.style.display='none'; Codehighlighter1_115_217_Closed_Image.style.display='inline'; Codehighlighter1_115_217_Closed_Text.style.display='inline';" src="http://www.cnitblog.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_115_217_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_115_217_Closed_Text.style.display='none'; Codehighlighter1_115_217_Open_Image.style.display='inline'; Codehighlighter1_115_217_Open_Text.style.display='inline';" src="http://www.cnitblog.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /></span><span id="Codehighlighter1_115_217_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cnitblog.com/images/dot.gif" /></span><span id="Codehighlighter1_115_217_Open_Text"><span style="COLOR: #000000">{r</span><span style="COLOR: #000000">=-</span><span style="COLOR: #000000">b</span><span style="COLOR: #000000">/</span><span style="COLOR: #000000">(</span><span style="COLOR: #000000">2</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">a); <br /><img src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align="top" />i </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">sqrt(</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">d)</span><span style="COLOR: #000000">/</span><span style="COLOR: #000000">(</span><span style="COLOR: #000000">2</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">a); <br /><img src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align="top" />printf(“x1</span><span style="COLOR: #000000">=%</span><span style="COLOR: #000000">8.4f</span><span style="COLOR: #000000">+%</span><span style="COLOR: #000000">8</span><span style="COLOR: #000000">.4fi\n”r, i); <br /><img src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align="top" />printf(“x2</span><span style="COLOR: #000000">=%</span><span style="COLOR: #000000">8.4f</span><span style="COLOR: #000000">-%</span><span style="COLOR: #000000">8</span><span style="COLOR: #000000">.4fi\n”r,i) <br /><img src="http://www.cnitblog.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />}</span></span><span style="COLOR: #000000"> <br /><img src="http://www.cnitblog.com/images/OutliningIndicators/None.gif" align="top" /></span></div><p>③嵌套分支语句：其语句格式为： <br />if(条件1) {分支1}； <br />else if（条件2） {分支2} <br />else if（条件3） {分支3} <br />…… <br />else if（条件n） {分支n} <br />else {分支n+1} <br />嵌套分支语句虽可解决多个入口和出口的问题，但超过3重嵌套后，语句结构变得非常复杂，对于程序的阅读和理解都极为不便，建议嵌套在3重以内，超过3重可以用下面的语句。<br />④switch开关语句：该语句也是多分支选择语句，到底执行哪一块，取决于开关设置，也就是表达式的值与常量表达式相匹配的那一路，它不同if…else 语句，它的所有分支都是并列的，程序执行时，由第一分支开始查找，如果相匹配，执行其后的块，接着执行第2分支，第3分支……的块，直到遇到break语句；如果不匹配，查找下一个分支是否匹配。这个语句在应用时要特别注意开关条件的合理设置以及break语句的合理应用。 <br />（3）循环结构： <br />    循环结构可以减少源程序重复书写的工作量，用来描述重复执行某段算法的问题，这是程序设计中最能发挥计算机特长的程序结构，C语言中提供四种循环，即goto循环、while循环、do –while循环和for循环。四种循环可以用来处理同一问题，一般情况下它们可以互相代替换，但一般不提倡用goto循环，因为强制改变程序的顺序经常会给程序的运行带来不可预料的错误，在学习中我们主要学习while、do…while、for三种循环。常用的三种循环结构学习的重点在于弄清它们相同与不同之处，以便在不同场合下使用，这就要清楚三种循环的格式和执行顺序，将每种循环的流程图理解透彻后就会明白如何替换使用，如把while循环的例题，用for语句重新编写一个程序，这样能更好地理解它们的作用。特别要注意在循环体内应包含趋于结束的语句（即循环变量值的改变），否则就可能成了一个死循环，这是初学者的一个常见错误。 <br />在学完这三个循环后，应明确它们的异同点：用while和do…while循环时，循环变量的初始化的操作应在循环体之前，而for循环一般在语句1中进行的；while 循环和for循环都是先判断表达式，后执行循环体，而do…while循环是先执行循环体后判断表达式，也就是说do…while的循环体最少被执行一次，而while 循环和for就可能一次都不执行。另外还要注意的是这三种循环都可以用break语句跳出循环，用continue语句结束本次循环，而goto语句与if构成的循环，是不能用break和 continue语句进行控制的。<br />    顺序结构、分支结构和循环结构并不彼此孤立的，在循环中可以有分支、顺序结构，分支中也可以有循环、顺序结构，其实不管哪种结构，我们均可广义的把它们看成一个语句。在实际编程过程中常将这三种结构相互结合以实现各种算法，设计出相应程序，但是要编程的问题较大，编写出的程序就往往很长、结构重复多，造成可读性差，难以理解，解决这个问题的方法是将C程序设计成模块化结构。 <br />(4)模块化程序结构 <br />    C语言的模块化程序结构用函数来实现，即将复杂的C程序分为若干模块，每个模块都编写成一个C函数，然后通过主函数调用函数及函数调用函数来实现一大型问题的C程序编写，因此常说：C程序=主函数+子函数。 因些，对函数的定义、调用、值的返回等中要尤其注重理解和应用，并通过上机调试加以巩固。<br />三．<font color="#7fffd4">掌握一些简单的算法</font><br />    编程其实一大部分工作就是分析问题，找到解决问题的方法，再以相应的编程语言写出代码。这就要求掌握算法，根据我们的《C程序设计》教学大纲中，只要求我们掌握一些简单的算法，在掌握这些基本算法后，要完成对问题的分析就容易了。如两个数的交换、三个数的比较、选择法排序和冒泡法排序，这就要求我们要清楚这些算法的内在含义，其中选择法排序和冒泡法排序稍难，但只要明白排序的具体过程，对代码的理解就不难了。如用选择法对10个不同整数排序（从小到大），选择法排序思路：设有10个元素a[1]~a[10],将a[1]与a[2]~a[10]比较，若a[1]比a[2]~a[10]都小，则不进行交换，即无任何操作；若a[2]~a[10] 中有一个比a[1]小，则将其中最大的一个（假设为a[i]）与a[1]交换，此时a[1]中存放了10个中最小的数。第二轮将a[2]与a[3]~a[10]比较，将剩下9个数中的最小者a[i]与a[2]交换，此时a[2] 中存放的10个数中第2小的数；依此类推，共进行9轮比较，a[1]到a[10]就已按从小到大的顺序存放。即每一轮都找出剩下数中的最小一个，代码如下：<br /></p><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://www.cnitblog.com/images/OutliningIndicators/None.gif" align="top" /><span style="COLOR: #0000ff">for</span><span style="COLOR: #000000">(i</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">;i</span><span style="COLOR: #000000">&lt;=</span><span style="COLOR: #000000">9</span><span style="COLOR: #000000">;i</span><span style="COLOR: #000000">++</span><span style="COLOR: #000000">)<br /><img src="http://www.cnitblog.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff">for</span><span style="COLOR: #000000">(j</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">i</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">;j</span><span style="COLOR: #000000">&lt;=</span><span style="COLOR: #000000">10</span><span style="COLOR: #000000">;j</span><span style="COLOR: #000000">++</span><span style="COLOR: #000000">)<br /><img src="http://www.cnitblog.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">(a[i]</span><span style="COLOR: #000000">&gt;</span><span style="COLOR: #000000">a[j] <br /><img id="Codehighlighter1_53_87_Open_Image" onclick="this.style.display='none'; Codehighlighter1_53_87_Open_Text.style.display='none'; Codehighlighter1_53_87_Closed_Image.style.display='inline'; Codehighlighter1_53_87_Closed_Text.style.display='inline';" src="http://www.cnitblog.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_53_87_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_53_87_Closed_Text.style.display='none'; Codehighlighter1_53_87_Open_Image.style.display='inline'; Codehighlighter1_53_87_Open_Text.style.display='inline';" src="http://www.cnitblog.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /></span><span id="Codehighlighter1_53_87_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cnitblog.com/images/dot.gif" /></span><span id="Codehighlighter1_53_87_Open_Text"><span style="COLOR: #000000">{temp</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">a[i];<br /><img src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align="top" />a[i]</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">a[j];<br /><img src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align="top" />a[j]</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">temp;<br /><img src="http://www.cnitblog.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />}</span></span></div><p><br /><br />       这是学C语言的基础，先把基础打好后面的函数、指针以及结构体、联合体学起来就要轻松很多。把后面的学透了可以自己来写些东西，搞个下开发。<br />结语：当我们把握好上述几方面后，只要同学们能克服畏难、厌学、上课能专心听讲，做好练习与上机调试，其实C语言并不难学。<br /></p><img src ="http://www.cnitblog.com/tryne/aggbug/16807.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/tryne/" target="_blank">朱娟</a> 2006-09-13 19:59 <a href="http://www.cnitblog.com/tryne/archive/2006/09/13/16807.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>给刚认识网页的读者。</title><link>http://www.cnitblog.com/tryne/archive/2006/09/13/16804.html</link><dc:creator>朱娟</dc:creator><author>朱娟</author><pubDate>Wed, 13 Sep 2006 11:29:00 GMT</pubDate><guid>http://www.cnitblog.com/tryne/archive/2006/09/13/16804.html</guid><wfw:comment>http://www.cnitblog.com/tryne/comments/16804.html</wfw:comment><comments>http://www.cnitblog.com/tryne/archive/2006/09/13/16804.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/tryne/comments/commentRss/16804.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/tryne/services/trackbacks/16804.html</trackback:ping><description><![CDATA[
		<div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee">
				<img src="http://www.cnitblog.com/images/OutliningIndicators/None.gif" align="top" />
				<span style="COLOR: #000000">&lt;</span>
				<span style="COLOR: #000000">html</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.cnitblog.com/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #000000">&lt;</span>
				<span style="COLOR: #000000">body</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.cnitblog.com/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #000000">&lt;</span>
				<span style="COLOR: #000000">title</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">我个人的设计</span>
				<span style="COLOR: #000000">&lt;/</span>
				<span style="COLOR: #000000">title</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.cnitblog.com/images/OutliningIndicators/None.gif" align="top" /> 这是一个网页设计的基本框架，这是一个静态页面需要的基本元素，不管一个网页里面有没有内容都是有这些代码的，即使是没有显示任何东西的网页也是这样的，有这些基本元素，一个网页的框架，当然现在很少有人去写代码，一般都是有专门的软件来开发，基本上都是可视化的开发，就算是动态页面一般也少不了这些元素。<br /><img src="http://www.cnitblog.com/images/OutliningIndicators/None.gif" align="top" /></span>
				<span style="COLOR: #000000">&lt;/</span>
				<span style="COLOR: #000000">body</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.cnitblog.com/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #000000">&lt;/</span>
				<span style="COLOR: #000000">html</span>
				<span style="COLOR: #000000">&gt;</span>
		</div>
<img src ="http://www.cnitblog.com/tryne/aggbug/16804.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/tryne/" target="_blank">朱娟</a> 2006-09-13 19:29 <a href="http://www.cnitblog.com/tryne/archive/2006/09/13/16804.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>