Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main(){
- int N = 0;
- int opcion = 0;
- scanf("%d",&N);
- int** M = (int**)malloc(sizeof(int*)*N);
- for(int i=0; i<N; i++){
- M[i]=(int*)malloc(sizeof(int)*N);
- }
- for(int i=0; i<N; i++){ //Rellena la matriz
- for(int j=0; j<N; j++){
- scanf("%d",&M[i][j]);
- }
- }
- scanf("%d",&opcion);
- switch(opcion){
- case 1:
- //reflexion vertical
- break;
- case 2:
- //reflexion horizontal
- break;
- case 3:
- break;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement