<?xml version="1.0" encoding="utf-8"?><rss version="2.0">
<channel>
<title><![CDATA[ptp c home]]></title>
<link>http://blog.pfan.cn/kptp</link>
<description>编程爱好者博客</description>
<language>zh-cn</language>
			<item>
		<title><![CDATA[例：汽车运费问题]]></title>
		<link>http://blog.pfan.cn/kptp/4516.html</link>
		<description><![CDATA[题目：p103
main()
{
&nbsp;&nbsp;float p,w,s,d,f,c;
&nbsp;&nbsp;scanf(&quot;%f,%f,%f&quot;,&amp;p,&amp;w,&amp;s);

&nbsp;&nbsp;if (s&gt;=3000) c=12;
&nbsp;&nbsp;else&nbsp;&nbsp;c=s/250; 
&nbsp;&nbsp;switch (c)
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case 0:d=0;break;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case 1:d=2;break;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case 2:
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case 3:d=5;break
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case 4:
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case 5:
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case 6:
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case 7:d=8;break;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case 8:
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case 9:
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case 10:
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case 11:d=10;bre]]></description>
		<author><![CDATA[ktputaopi]]></author>
		<pubDate>2005-09-08 16:07:00</pubDate>
		</item>
				<item>
		<title><![CDATA[一元二次方程的解]]></title>
		<link>http://blog.pfan.cn/kptp/4515.html</link>
		<description><![CDATA[#include &lt;math.h&gt;
main()
{
&nbsp;&nbsp;float a,b,c,disc,x1,x2,realpart,imgpart;
&nbsp;&nbsp;scanf(&quot;a=%f,b=%f,c=%f&quot;,&amp;a,&amp;b,&amp;c);
&nbsp;&nbsp;disc=b*b-4*a*c;
&nbsp;&nbsp;if (fabs(a)&lt;=1e-6) printf(&quot;please check a,a!=0\n&quot;);
else
&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;if (fabs(disc)&lt;=1e-6)
&nbsp;&nbsp;&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;x1=x2=-b/(2*a);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&quot;%8.4f,%8.4f\n&quot;,x1,x2);
&nbsp;&nbsp;&nbsp;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;else if (disc&gt;1e-6)
&nbsp;&nbsp;&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;x1=(-b+sqrt(disc))/(2*a);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;x2=(-b-sqrt(disc))/(2*a);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&quot;%8.4f,%8.4f\n&quot;,x1,x2);
&nbsp;&nbsp;&nbsp;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;else
&nbsp;&nbsp;&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;realpart=-b/(2*a);
&nbsp;&nbsp;&nbsp;&nbsp;imgpart=sqrt(-disc)/(2*a);
&nbsp;&nbsp;&nbsp;&nbsp;printf(&quot;x1=%8.]]></description>
		<author><![CDATA[ktputaopi]]></author>
		<pubDate>2005-09-08 15:10:00</pubDate>
		</item>
				<item>
		<title><![CDATA[闰年程序]]></title>
		<link>http://blog.pfan.cn/kptp/4513.html</link>
		<description><![CDATA[main()
{
int year,leap;
scanf(&quot;%d&quot;,&amp;year);
if ((year%4==0&amp;&amp;year%100!=0)||(year%100==0&amp;&amp;year%400==0)) leap=1;
else leap=0;
switch(leap)
&nbsp;&nbsp;{
&nbsp;&nbsp;case 1:printf(&quot;a leap year&quot;);
&nbsp;&nbsp;case 0:printf(&quot;not a leap year&quot;);
&nbsp;&nbsp;}
}]]></description>
		<author><![CDATA[ktputaopi]]></author>
		<pubDate>2005-09-08 11:08:00</pubDate>
		</item>
				<item>
		<title><![CDATA[the leap year-expound]]></title>
		<link>http://blog.pfan.cn/kptp/4510.html</link>
		<description><![CDATA[when i saw the porgram of the leap year ,i became so muddle.I was not understand the means of the expound.Subsequently ,I tumbled to the porgram.It needed to sides:
&nbsp;&nbsp;The first side was the year could be devided exactly by 4,not by 100.
&nbsp;&nbsp;The second side was if the year was devidedy exactly by 100,at the same time it must be devided exactly by 400. 
&nbsp;&nbsp;If the year satified all the requirements ,the year was the leap year.]]></description>
		<author><![CDATA[ktputaopi]]></author>
		<pubDate>2005-09-08 10:49:00</pubDate>
		</item>
				<item>
		<title><![CDATA[temper diary]]></title>
		<link>http://blog.pfan.cn/kptp/4446.html</link>
		<description><![CDATA[sept 5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sunny 
 The day was my first time to learn the c program earnestly , Simultaneity it was my firt time to writ diary in english,I
was so happy,but I thought that I needed the help of everyone,
can you help me? If you wanted to help me or learn with me together,
you could email me or call me .My relation adress followed:
qq:150925140
e-mail:k.t.putaopi@163.com
 

welcome you to check my errors!!! Thanks a lot!]]></description>
		<author><![CDATA[ktputaopi]]></author>
		<pubDate>2005-09-05 15:46:00</pubDate>
		</item>
		</channel>
</rss>