C++打印米字型和八边形

#include
int main()
{
int i,j,n;
scanf(%d,n);
for(i = 0; i {
for(j = 1; j putchar(' ');
for(j = 0; j putchar('*');
putchar('n');
}
for(i = 0; i {
for(j = 0; j putchar('*');
putchar('n');
}
for(i = n-1; i >=0 ; i --)
{
for(j = 1; j putchar(' ');
for(j = 0; j putchar('*');
putchar('n');
}

return 0;
}

一个米字型的路八面有气体打一成语

四通八达
四面八方都有路可通。形容交通极便利。比喻事理融会贯通。

谜语:
井;十字路都到居庸关
例子:
清·林则徐《批美商喨请准贸易禀》:“夷馆~,防范难周。”
出处:
《子华子·晏子问党》:“其涂之所出,四通而八达,游士之所凑也。”
歇后语:
十二只轮船出海;蜘蛛网
用法:
联合式;作主语、谓语、定语;含褒义
反义词:
水泄不通
同义词:
畅行无阻
简拼:
stbd
拼音:
sì tōng bā dá

vb:画一个米字形,他随窗体改变大小而改变调整??求过程

Private Sub DrawMi(x1 As Single, y1 As Single, x2 As Single, y2 As Single)
Dim midx As Single, midy As Single
Me.Cls
midx = (x1 + x2) / 2
midy = (y1 + y2) / 2
Me.Line (x1, y1)-(x2, y2)
Me.Line (x1, y2)-(x2, y1)
Me.Line (midx, y1)-(midx, y2)
Me.Line (x1, midy)-(x2, midy)
End Sub

Private Sub Form_Resize()
DrawMi 100, 100, Me.Width - 1000, Me.Height - 1000
End Sub

发表评论