1234567891011121314151617181920212223242526 |
- #include "carre.h"
- using namespace std;
- void carrer( const int &l )
- {
- for ( int y(0); y<l; y++ ) { /// Dessine l lignes
- for ( int x(0); x<l; x++ ) { /// De chacune l caractères
- cout << " M";
- }
- cout << endl;
- }
- }
- void bord( const int &l )
- {
- for ( int y(0); y<l; y++ ) { /// Dessine l lignes
- for ( int x(0); x<l; x++ ) { /// De chacune l caractères
- if ( x == 0 || x == l-1 || y == 0 || y == l-1 )
- cout << " M";
- else
- cout << " ";
- }
- cout << endl;
- }
- }
|