编写的一个小程序,有没有更简单的方法
输出这样一个图形*********
* *
* *
* *
* *
* *
* *
* *
*********
程序代码:#include<iostream>
using namespace std;
char A[]="*********";
int main ()
{
for (int i=0; i<=9; i++)
{
cout<<A[i];
}cout<<endl;
for (int j=0; j<=7; j++)
{
cout<<A[j]<<" "<<A[j]<<endl;
}
for (int f=0; f<=8; f++)
{
cout<<A[f];
}
return 0;
} 求不用for的程序.......






