slashen
Becerro
- Desde
- 23 Mar 2009
- Mensajes
- 27
- Tema Autor
- #1
hola disculpen podrian ayudarme con este codigo la vrd no puedo terminarlo y no lo hice yo y me sigue tirando error!!
(SOLO TECLEEN "1" Y DEN ENTER para seleccionar ENERO)
#include <iostream.h>
#include <stdio.h>
#include <conio.h>
main ()
{
int mes, x=3, z, w, y=1;
cout<<"¿Que mes deseas ver?";
cin>>mes;
switch (mes)
{
case 1:
do {
gotoxy(x,4); cout<<"D";
x=x+4;
gotoxy(x,4); cout<<"L";
x=x+4;
gotoxy(x,4); cout<<"M";
x=x+4;
gotoxy(x,4); cout<<"M";
x=x+4;
gotoxy(x,4); cout<<"J";
x=x+4;
gotoxy(x,4); cout<<"V";
x=x+4;
gotoxy(x,4); cout<<"S";
}while(x<=14) ;
gotoxy(27,5); cout<<1;
for(w=6;w<=10;w++)
{
for(z=3;z<=27;z=z+4)
{
do{
y=y++;
gotoxy(z,w); cout<<y;
}while(y<=31);
}
}
break;
}
return 0;
}
gracias por su ayuda!!!
(SOLO TECLEEN "1" Y DEN ENTER para seleccionar ENERO)
#include <iostream.h>
#include <stdio.h>
#include <conio.h>
main ()
{
int mes, x=3, z, w, y=1;
cout<<"¿Que mes deseas ver?";
cin>>mes;
switch (mes)
{
case 1:
do {
gotoxy(x,4); cout<<"D";
x=x+4;
gotoxy(x,4); cout<<"L";
x=x+4;
gotoxy(x,4); cout<<"M";
x=x+4;
gotoxy(x,4); cout<<"M";
x=x+4;
gotoxy(x,4); cout<<"J";
x=x+4;
gotoxy(x,4); cout<<"V";
x=x+4;
gotoxy(x,4); cout<<"S";
}while(x<=14) ;
gotoxy(27,5); cout<<1;
for(w=6;w<=10;w++)
{
for(z=3;z<=27;z=z+4)
{
do{
y=y++;
gotoxy(z,w); cout<<y;
}while(y<=31);
}
}
break;
}
return 0;
}
gracias por su ayuda!!!