daily pastebin goal
14%
SHARE
TWEET

Untitled

a guest Jul 18th, 2018 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top