📄 c小应用.html
字号:
/*确保i、j、k三位互不相同*/<BR> printf("%d,%d,%d\n",i,j,k);<BR> }<BR>}<BR><SPAN
class=sft><BR><BR>____________________<BR><BR>
<P align=right>第2篇</P></SPAN></TD></TR>
<TR>
<TD vAlign=top bgColor=#edf1f0>
<TABLE class=sft style="FILTER: glow(color=#5B9F86,strength=1)"
cellSpacing=0 cellPadding=3 width="100%" border=0>
<TBODY>
<TR>
<TD>xiaoxiao</TD></TR></TBODY></TABLE>头衔:战士<BR>来自:武汉市<BR>发帖:8<BR>注册:2005年6月<BR><IMG
src="华大C语言论坛.files/12.gif"></IMG></TD>
<TD vAlign=top bgColor=#edf1f0>发表于: 2005-6-15 11:16:53 <A
href="javascript:openWindow('viewuser.asp?name=xiaoxiao')"><IMG alt=查看作者档案
src="华大C语言论坛.files/profile.gif" border=0></A> <A
href="mailto:zbba999999999@163.com"><IMG alt=给作者发电子邮件
src="华大C语言论坛.files/email.gif" border=0></A> <A
href="javascript:openWindow('xiaoxiaoxuan.91i.net')"><IMG alt=访问作者主页
src="华大C语言论坛.files/homepage.gif" border=0></A> <A
href="javascript:openWindow('viewip.asp?reply_id=11')"><IMG alt=查看IP地址
src="华大C语言论坛.files/ip.gif" border=0></A> <A
href="javascript:openWindow('http://search.tencent.com/cgi-bin/friend/user_show_info?ln=364216358')"><IMG
alt=QQ号码:364216358 src="华大C语言论坛.files/qq.gif"
border=0></A> <IMG alt="MSN号码: " src="华大C语言论坛.files/msn.gif"
border=0></A> <A
href="http://info.hqu.edu.cn/lym/sf/post.asp?method=edit&reply_id=11&auth=28&forum_title=&topic_title=c%D3%EF%D1%D4%CA%B5%C0%FD&forum_id=1&topic_id=242&page=1"><IMG
alt=编辑修改 src="华大C语言论坛.files/edit.gif" border=0></A> <A
href="http://info.hqu.edu.cn/lym/sf/delreply.asp?reply_id=11&topic_title=c%D3%EF%D1%D4%CA%B5%C0%FD&forum_id=1&forum_title=灌水论坛"><IMG
alt=删除回复 src="华大C语言论坛.files/del.gif" border=0></A> <A
href="http://info.hqu.edu.cn/lym/sf/post.asp?forum_id=1&reply_id=11&method=reply&type=quotereply&forum_title=%B9%E0%CB%AE%C2%DB%CC%B3&topic_id=242&topic_title=c%D3%EF%D1%D4%CA%B5%C0%FD&M="><IMG
alt=引用回复 src="华大C语言论坛.files/quote.gif" border=0></A>
<HR class=sft noShade SIZE=1>
<BR><BR>题目:输入某年某月某日,判断这一天是这一年的第几天?<BR>1.程序分析:以3月5日为例,应该先把前两个月的加起来,然后再加上5天即本年的第几天,特殊情况,闰年且输入月份大于3时需考虑多加一天。<BR>2.程序源代码:<BR>main()<BR>{<BR>int
day,month,year,sum,leap;<BR>printf("\nplease input
year,month,day\n");<BR>scanf("%d,%d,%d",&year,&month,&day);<BR>switch(month)/*先计算某月以前月份的总天数*/<BR>{<BR> case
1:sum=0;break;<BR> case 2:sum=31;break;<BR> case 3:sum=59;break;<BR> case
4:sum=90;break;<BR> case 5:sum=120;break;<BR> case
6:sum=151;break;<BR> case 7:sum=181;break;<BR> case
8:sum=212;break;<BR> case 9:sum=243;break;<BR> case
10:sum=273;break;<BR> case 11:sum=304;break;<BR> case
12:sum=334;break;<BR> default:printf("data
error");break;<BR>}<BR>sum=sum+day;
/*再加上某天的天数*/<BR> if(year%400==0||(year%4==0&&year%100!=0))/*判断是不是闰年*/<BR> leap=1;<BR> else<BR> leap=0;<BR>if(leap==1&&month>2)/*如果是闰年且月份大于2,总天数应该加一天*/<BR>sum++;<BR>printf("It
is the %dth day.",sum);}<BR><SPAN
class=sft><BR><BR>____________________<BR><BR>
<P align=right>第3篇</P></SPAN></TD></TR>
<TR>
<TD vAlign=top bgColor=#e1e7e5>
<TABLE class=sft style="FILTER: glow(color=#5B9F86,strength=1)"
cellSpacing=0 cellPadding=3 width="100%" border=0>
<TBODY>
<TR>
<TD>xiaoxiao</TD></TR></TBODY></TABLE>头衔:战士<BR>来自:武汉市<BR>发帖:8<BR>注册:2005年6月<BR><IMG
src="华大C语言论坛.files/12.gif"></IMG></TD>
<TD vAlign=top bgColor=#e1e7e5>发表于: 2005-6-15 11:19:54 <A
href="javascript:openWindow('viewuser.asp?name=xiaoxiao')"><IMG alt=查看作者档案
src="华大C语言论坛.files/profile.gif" border=0></A> <A
href="mailto:zbba999999999@163.com"><IMG alt=给作者发电子邮件
src="华大C语言论坛.files/email.gif" border=0></A> <A
href="javascript:openWindow('xiaoxiaoxuan.91i.net')"><IMG alt=访问作者主页
src="华大C语言论坛.files/homepage.gif" border=0></A> <A
href="javascript:openWindow('viewip.asp?reply_id=12')"><IMG alt=查看IP地址
src="华大C语言论坛.files/ip.gif" border=0></A> <A
href="javascript:openWindow('http://search.tencent.com/cgi-bin/friend/user_show_info?ln=364216358')"><IMG
alt=QQ号码:364216358 src="华大C语言论坛.files/qq.gif"
border=0></A> <IMG alt="MSN号码: " src="华大C语言论坛.files/msn.gif"
border=0></A> <A
href="http://info.hqu.edu.cn/lym/sf/post.asp?method=edit&reply_id=12&auth=28&forum_title=&topic_title=c%D3%EF%D1%D4%CA%B5%C0%FD&forum_id=1&topic_id=242&page=1"><IMG
alt=编辑修改 src="华大C语言论坛.files/edit.gif" border=0></A> <A
href="http://info.hqu.edu.cn/lym/sf/delreply.asp?reply_id=12&topic_title=c%D3%EF%D1%D4%CA%B5%C0%FD&forum_id=1&forum_title=灌水论坛"><IMG
alt=删除回复 src="华大C语言论坛.files/del.gif" border=0></A> <A
href="http://info.hqu.edu.cn/lym/sf/post.asp?forum_id=1&reply_id=12&method=reply&type=quotereply&forum_title=%B9%E0%CB%AE%C2%DB%CC%B3&topic_id=242&topic_title=c%D3%EF%D1%D4%CA%B5%C0%FD&M="><IMG
alt=引用回复 src="华大C语言论坛.files/quote.gif" border=0></A>
<HR class=sft noShade SIZE=1>
<BR><BR>题目:要求输出国际象棋棋盘。<BR>1.程序分析:用i控制行,j来控制列,根据i+j的和的变化来控制输出黑方格,还是白方格。<BR>2.程序源代码:<BR>#include
"stdio.h"<BR>main()<BR>{<BR>int
i,j;<BR>for(i=0;i<8;i++)<BR> {<BR> for(j=0;j<8;j++)<BR> if((i+j)%2==0)<BR> printf("%c%c",219,219);<BR> else<BR> printf("
");<BR> printf("\n");<BR> }<BR>}<BR><SPAN
class=sft><BR><BR>____________________<BR><BR>
<P align=right>第4篇</P></SPAN></TD></TR>
<TR>
<TD vAlign=top bgColor=#edf1f0>
<TABLE class=sft style="FILTER: glow(color=#5B9F86,strength=1)"
cellSpacing=0 cellPadding=3 width="100%" border=0>
<TBODY>
<TR>
<TD>xiaoxiao</TD></TR></TBODY></TABLE>头衔:战士<BR>来自:武汉市<BR>发帖:8<BR>注册:2005年6月<BR><IMG
src="华大C语言论坛.files/12.gif"></IMG></TD>
<TD vAlign=top bgColor=#edf1f0>发表于: 2005-6-15 11:26:45 <A
href="javascript:openWindow('viewuser.asp?name=xiaoxiao')"><IMG alt=查看作者档案
src="华大C语言论坛.files/profile.gif" border=0></A> <A
href="mailto:zbba999999999@163.com"><IMG alt=给作者发电子邮件
src="华大C语言论坛.files/email.gif" border=0></A> <A
href="javascript:openWindow('xiaoxiaoxuan.91i.net')"><IMG alt=访问作者主页
src="华大C语言论坛.files/homepage.gif" border=0></A> <A
href="javascript:openWindow('viewip.asp?reply_id=13')"><IMG alt=查看IP地址
src="华大C语言论坛.files/ip.gif" border=0></A> <A
href="javascript:openWindow('http://search.tencent.com/cgi-bin/friend/user_show_info?ln=364216358')"><IMG
alt=QQ号码:364216358 src="华大C语言论坛.files/qq.gif"
border=0></A> <IMG alt="MSN号码: " src="华大C语言论坛.files/msn.gif"
border=0></A> <A
href="http://info.hqu.edu.cn/lym/sf/post.asp?method=edit&reply_id=13&auth=28&forum_title=&topic_title=c%D3%EF%D1%D4%CA%B5%C0%FD&forum_id=1&topic_id=242&page=1"><IMG
alt=编辑修改 src="华大C语言论坛.files/edit.gif" border=0></A> <A
href="http://info.hqu.edu.cn/lym/sf/delreply.asp?reply_id=13&topic_title=c%D3%EF%D1%D4%CA%B5%C0%FD&forum_id=1&forum_title=灌水论坛"><IMG
alt=删除回复 src="华大C语言论坛.files/del.gif" border=0></A> <A
href="http://info.hqu.edu.cn/lym/sf/post.asp?forum_id=1&reply_id=13&method=reply&type=quotereply&forum_title=%B9%E0%CB%AE%C2%DB%CC%B3&topic_id=242&topic_title=c%D3%EF%D1%D4%CA%B5%C0%FD&M="><IMG
alt=引用回复 src="华大C语言论坛.files/quote.gif" border=0></A>
<HR class=sft noShade SIZE=1>
<BR><BR>请教各位大侠一个题目:<BR>编写颁奖程序:在N个选手中评出一等奖1名,二等奖2名,三等奖3名,输出得奖情况。<BR>评分过程为:M个裁判给选手打分,去掉一个最高分和一个最低分后,其他分数的平均分即为选手的得分。根据选手的得分来评奖。<BR>要求:<BR>1.
编写排序函数sort( )<BR>2. 编写求从一组数中去掉一个最高分和一个最低分后的平均值函数average( )<BR>3.
利用以上两个函数评奖<BR>4. 最后输出所得奖项及选手序号和分数。<BR>如: the first prize N0.4 9.0
<P></P>
<P></P>
<P>联系邮箱: zbba999999999@163.com<BR>谢谢啦<SPAN
class=sft><BR><BR>____________________<BR><BR>
<P align=right>第5篇</P></SPAN></TD></TR>
<TR>
<TD vAlign=top bgColor=#e1e7e5>
<TABLE class=sft style="FILTER: glow(color=#5B9F86,strength=1)"
cellSpacing=0 cellPadding=3 width="100%" border=0>
<TBODY>
<TR>
<TD>wyl</TD></TR></TBODY></TABLE>头衔:战士<BR>来自:qz<BR>发帖:8<BR>注册:2005年6月<BR><IMG
src="华大C语言论坛.files/29.gif"></IMG></TD>
<TD vAlign=top bgColor=#e1e7e5>发表于: 2005-6-15 22:47:36 <A
href="javascript:openWindow('viewuser.asp?name=wyl')"><IMG alt=查看作者档案
src="华大C语言论坛.files/profile.gif" border=0></A> <A
href="mailto:weiyulan83@yahoo.com.cn"><IMG alt=给作者发电子邮件
src="华大C语言论坛.files/email.gif" border=0></A> <A
href="javascript:openWindow('%20')"><IMG alt=访问作者主页
src="华大C语言论坛.files/homepage.gif" border=0></A> <A
href="javascript:openWindow('viewip.asp?reply_id=15')"><IMG alt=查看IP地址
src="华大C语言论坛.files/ip.gif" border=0></A> <A
href="javascript:openWindow('http://search.tencent.com/cgi-bin/friend/user_show_info?ln=32795269')"><IMG
alt=QQ号码:32795269 src="华大C语言论坛.files/qq.gif" border=0></A> <IMG
alt="MSN号码: " src="华大C语言论坛.files/msn.gif"
border=0></A> <A
href="http://info.hqu.edu.cn/lym/sf/post.asp?method=edit&reply_id=15&auth=31&forum_title=&topic_title=c%D3%EF%D1%D4%CA%B5%C0%FD&forum_id=1&topic_id=242&page=1"><IMG
alt=编辑修改 src="华大C语言论坛.files/edit.gif" border=0></A> <A
href="http://info.hqu.edu.cn/lym/sf/delreply.asp?reply_id=15&topic_title=c%D3%EF%D1%D4%CA%B5%C0%FD&forum_id=1&forum_title=灌水论坛"><IMG
alt=删除回复 src="华大C语言论坛.files/del.gif" border=0></A> <A
href="http://info.hqu.edu.cn/lym/sf/post.asp?forum_id=1&reply_id=15&method=reply&type=quotereply&forum_title=%B9%E0%CB%AE%C2%DB%CC%B3&topic_id=242&topic_title=c%D3%EF%D1%D4%CA%B5%C0%FD&M="><IMG
alt=引用回复 src="华大C语言论坛.files/quote.gif" border=0></A>
<HR class=sft noShade SIZE=1>
<BR><BR>请问,上面的题目都是正确的吗?<BR>谢谢!<SPAN
class=sft><BR><BR>____________________<BR>快乐每一天!<BR>
<P align=right>第6篇</P></SPAN></TD></TR>
<TR>
<TD vAlign=top bgColor=#edf1f0>
<TABLE class=sft style="FILTER: glow(color=#5B9F86,strength=1)"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -