PARA HACER EL RECUADRO, PONDREMOS LO SIGUIENTE:
PASO 1:
COLOCAR LAS LIBRERIAS
PASO 2:
EL CUERPO VOID MAIN()
PASO3:
HE AQUI EL CODIGO CLAVE, LOS FOR, EN ESTE CASO YO USARE 2 FOR.
EL PRIMER FOR ES PASO LAS LINEAS HORIZONTALES LAS CUALES IRAN CON LOS CODIGOS DE GOTOXY(X,Y), QUE POSICIONES EL SIMBOLO "-" EN EL EJE X, Y RESPECTIVAMENTE
EL SEGUNDO FOR ES PARA LAS LINEAS VERTICALES
#include<iostream.h>
#include<conio.h>
void main(){
int n,m,x=5,y=3;
for(int i=1; i<=72; i++){
//horizontal superior
gotoxy(x,3);cout<<"-";
//horizontal inferior
gotoxy(x,23);cout<<"-";
x++;
}
for(int j=1; j<=20; j++){
//vertical izquierdo
gotoxy(5,y);cout<<"|";
gotoxy(76,y);cout<<"|";
y++;
}
gotoxy(33,5);cout<<"EJEMPLOX";
gotoxy(12,8);cout<<"ingrese siguiente numero:";
cin>>m;
getch();
}
.bmp)
Justo lo que estaba buscando! mil gracias
ResponderEliminarse puede hacer bordes con diseño??
ResponderEliminar