嘻嘻嘻,我又来做视觉盛宴啦!^_^
#include<windows.h>
#include<iostream>
using namespace std;
HWND hwnd=GetForegroundWindow();
int main(){
long long n=150,i,x,k;
ShowWindow(hwnd,SW_MAXIMIZE);
for(;;)
{
for(i=1;i<=n;i++)
{
for(k=1;k<=i-1;k++)
{
cout<<" ";
}
for(x=1;x<=2*(n-i)+1;x++)
{
cout<<"$";
}
cout<<endl;
}
for(i=1;i<=n-1;i++)
{
for(k=1;k<=n-i-1;k++)
{
cout<<" ";
}
for(x=1;x<=2*i+1;x++)
{
cout<<"$";
}
cout<<endl;
}
}
return 0;
}