#include <iostream.h>
#include <stdlib.h>
#include <math.h>
int main()
{
int x,r=10;
double y,m,n;
for(y=r;y>=-r;y-=1)
{
m=int(2.5*(sqrt(r*r-y*y)));
n=int(3*sqrt(y));
for(x=0;x<=62;x+=1)
{if(x==31-m||x==31+m) cout<<"*";
else if(x==31-m&&x==31-n) cout<<"+";
else if((x==31-n||x==30+n)&&((31-n)!=(31+n))) cout<<"+";
else cout<<" ";
}
cout<<endl;
}
system("pause");
return 0;
}
#include <stdlib.h>
#include <math.h>
int main()
{
int x,r=10;
double y,m,n;
for(y=r;y>=-r;y-=1)
{
m=int(2.5*(sqrt(r*r-y*y)));
n=int(3*sqrt(y));
for(x=0;x<=62;x+=1)
{if(x==31-m||x==31+m) cout<<"*";
else if(x==31-m&&x==31-n) cout<<"+";
else if((x==31-n||x==30+n)&&((31-n)!=(31+n))) cout<<"+";
else cout<<" ";
}
cout<<endl;
}
system("pause");
return 0;
}
![](http://hi.csdn.net/attachment/201111/1/0_1320160240z13q.gif)