martes, 1 de octubre de 2019

CÓDIGO 15.

#include <iostream>
#include <windows.h>

using namespace std;
int n,m,A[4][4],x=5,y=8;
void gotoxy(int x,int y){
     HANDLE hcon;
     hcon=GetStdHandle(STD_OUTPUT_HANDLE);
     COORD dwPos;
     dwPos.X=x;
     dwPos.Y=y;
     SetConsoleCursorPosition(hcon,dwPos);
}
int main()
{

    for(int i=0; i<=3; i++){
        for(int j=0; j<=3; j++){
        gotoxy(x,y);
        cin>>A[i][j];
        x+=5;
}
        y+=2;
        x=5;
}
    system("color 4");
    cout<<"HOLA!!!";
    //system("cls");

    return 0;
}

No hay comentarios:

Publicar un comentario

Examen 4

#include <iostream> #include <stdio.h> #include <stdlib.h> using namespace std; void menu(); void captura(); void i...