Su 200943147
Dependencies: Gamepad N5110 mbed
Diff: Shape/Shape.cpp
- Revision:
- 9:6ee4c806f3e9
- Parent:
- 8:3899d883d329
diff -r 3899d883d329 -r 6ee4c806f3e9 Shape/Shape.cpp --- a/Shape/Shape.cpp Thu May 04 13:28:46 2017 +0000 +++ b/Shape/Shape.cpp Thu May 04 14:20:35 2017 +0000 @@ -38,9 +38,9 @@ for(int j=1; j<5; j++) { printf("%d\n",ArrayRotate[i][j]); //print the array } - } - printf("x=%d\n",x); //print value of x for debug - printf("y=%d\n",y); //print value of y for debug + }//reference http://stackoverflow.com/questions/8442729/is-there-a-way-to-have-printf-properly-print-out-an-array-of-floats-say + // printf("x=%d\n",x); //print value of x for debug +// printf("y=%d\n",y); //print value of y for debug if(pad.check_event(Gamepad::A_PRESSED) == true) { //event check for(int i=0; i<84; i++) { for(int j=0; j<48; j++) { @@ -48,15 +48,15 @@ ShapeArray[i][j]=0; } } - printf("x1=%d\n",x); //print value of x for debug - printf("y1=%d\n",y); //print value of y for debug + // printf("x1=%d\n",x); //print value of x for debug + // printf("y1=%d\n",y); //print value of y for debug for(int i=0; i<83; i++) { for(int j=0; j<47; j++) { ShapeInit[i+1][j+1]=ArrayRotate[i][j]; //transfer the rotated array back to orignail array } } - printf("x2=%d\n",x); //print value of x for debug - printf("y2=%d\n",y); //print value of y for debug + // printf("x2=%d\n",x); //print value of x for debug + // printf("y2=%d\n",y); //print value of y for debug } }