Advertisement
Guest User

Untitled

a guest
Jul 18th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. /
  2.  
  3.  
  4. int main(){
  5. int N = 0;
  6. scanf("%d",&N);
  7.  
  8. int** M = (int**)malloc(sizeof(int*)*N);
  9. for(int i=0; i<N; i++){
  10. M[i]=(int*)malloc(sizeof(int)*N);
  11. }
  12.  
  13. for(int i=0; i<N; i++){ //Rellena la matriz
  14. for(int j=0; i<N; j++){
  15. scanf("%d",&M[i][j]);
  16. }
  17. }
  18. scanf("%d",&opcion);
  19. switch(opcion){
  20. case 1:
  21. //reflexion vertical
  22. break;
  23. case 2:
  24. //reflexion horizontal
  25. break;
  26. case3:
  27. break;
  28. }
  29.  
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement