= MineSweeper = == {{{~cpp MineSweeper.cpp}}} == {{{~cpp #include using namespace std; #define BOMB 100 void main() { int count=0; int width,height; cin>>height; cin>>width; count++; char* temp=new char[width]; int* arrayOfMine=new int[width*height]; for(int a=0;a>temp; for(int j=0;j0 && j>0) arrayOfMine[(i-1)*width+(j-1)]++; if(j>0) arrayOfMine[(i)*width+(j-1)]++; if(i0) arrayOfMine[(i+1)*width+(j-1)]++; if(i>0) arrayOfMine[(i-1)*width+(j)]++; if(i0 && j=BOMB) cout<<"*"; else cout<