Advertisement
Guest User

Untitled

a guest
Jul 18th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. int main(){
  2. int N = 0;
  3. int opcion = 0;
  4. scanf("%d",&N);
  5.  
  6. int** M = (int**)malloc(sizeof(int*)*N);
  7. for(int i=0; i<N; i++){
  8. M[i]=(int*)malloc(sizeof(int)*N);
  9. }
  10.  
  11. for(int i=0; i<N; i++){ //Rellena la matriz
  12. for(int j=0; j<N; j++){
  13. scanf("%d",&M[i][j]);
  14. }
  15. }
  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. case 3:
  27. break;
  28. }
  29.  
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement