怎样表示大量粒子?急啊
模拟简单的爆炸。(提示:爆炸可看作是大量粒子在同一瞬间从同一地点作的随机抛体运动)

只要表示大量粒子也行
急!急!急!
程序代码:
#include<iostream>
#include<cstring>
#include <cstdlib>
using namespace std;
class bomb
{
public:
int n;
char array[10000][10000];
bomb()
{
for(int i=0;i<n;i++)
{
for(int j=0;j<n;j++)
array[i][j]=' ';
cout<<endl;
}
}
void charger()
{
int half=n/2;
for(int m=0;m<=half;m++)
{
int i=rand()%n;
int j=rand()%n;
array[i][j]='*';
}
}
void bombing()
{
for(int i=0;i<10000;i++)
{
for(int j=0;j<10000;j++)
cout<<array[i][j];
cout<<endl;
}
}
};
int main(void)
{
bomb Bomb;
for(int i=0;i<=65535;i+=300)
{
system("cls");
Bomb.n=i+300;
Bomb.charger();
Bomb.bombing();
}
return 0;
}
