1#include 2#include 3#include 4void main() 5{ 6 clrscr(); 7 int f=1; 8 float pi=0,t=1,v=1; 9 while (fabs(t)>1e-6)10 {11 pi=pi+t;12 v+=2; /**//*准备下一个累加的数据*/13 f=-f;14 t=f/v;15 }16 pi*=4;... Read More
posted @ 2007-01-12 16:27 齐心 Views(4371) Comments(1) Diggs(0) Edit
#include #include #include void main(){ clrscr(); unsigned i,j,flag,count; /**//**//**//*用flag作标志*/ count=0; /**//**//**//*计数器清0*/ for(i=3;i#include#includevoid main(){ int i,n; for(i=... Read More
posted @ 2007-01-12 15:32 齐心 Views(1434) Comments(0) Diggs(0) Edit
Microsoft Office Word 2007 Beta 2新增了Blog发布功能,这个一直让人期待的功能终于可以体验一下了。 经过今天的努力,博客园现在已经支持通过Microsoft Office Word 2007发布Blog。 该文章就是通过Word 2007发布。 具体配置方法如下: 点击选择左上角的按钮,选择Publish>Blog。 点击Manage Accou... Read More
posted @ 2006-12-24 18:29 齐心 Views(217) Comments(0) Diggs(0) Edit
1、在菜单中选择“Weblog”,然后选择“Another Weblog Service”。2、在Weblog Homepage URL中输入你的Blog主页地址。3、输入用户名与密码。4、在“Type of weblog that you are using”中选择“Custom(Metaweblog API)”。5、“Remote posting URL for your weblog”... Read More
posted @ 2006-12-24 18:29 齐心 Views(140) Comments(0) Diggs(0) Edit
本示例展示如何使用运算符重载创建定义复数加法的复数类 Complex。本程序使用 ToString 方法的重载显示数字的虚部和实部以及加法结果。 1public struct Complex 2{ 3 public int real; 4 public int imaginary; 5 6 public Complex(int real, int imaginary) //c... Read More
posted @ 2006-12-24 17:17 齐心 Views(466) Comments(0) Diggs(0) Edit