
ANGELITA 21 NECESITA AYUDA
Publicado por ANGELITA (1 intervención) el 24/03/2007 18:19:47
AMIGITOS SOY ANGELITA UNA ESTUDIANTE DE SISTEMAS EN MEDELLIN PERO CON UN PEQUEÑO PROBLEMA EN MIS PRIMERAS CLASES DE PROGRAMACION EN C++ ESTE ES MI PROGRAMA PERO NO SE PORQUE NO ME RECONOCE EL ELSE SI TIENE EJEMPLOS ME AYUDN POR FAVOR
#include<stdio.h>
#include<conio.h>
#include<dos.h>
#include <iostream.h>
#include <conio.h>
#include <ctype.h>
void main()
{
int cont;
float edad,total;
char apellido1[15],apellido2[15],nombrealumno[15],apellidopadre[15],apellidopadre2[15],nombrepadre[15];
cont=0;
clrscr();
gotoxy(15,2);cout<<"* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *";
gotoxy(15,3);cout<<"* CURSO DE PROGRAMACION C++ ";
gotoxy(15,4);cout<<"* ============================ ";
gotoxy(15,5);cout<<"* ";
gotoxy(15,6);cout<<"* ";
gotoxy(15,7);cout<<"* Programa para controlar ingreso al jardin MICKY MUOUSE ";
gotoxy(15,8);cout<<"* ";
gotoxy(15,9);cout<<"* FUNDACION UNIVERSITARIA INPAHU ";
gotoxy(15,10);cout<<"* FACULTAD DE NUEVAS TECNOLOGIAS ";
gotoxy(15,11);cout<<"* ";
gotoxy(15,12);cout<<"* Elaborado por: ANGELICA ROMERO ";
gotoxy(15,13);cout<<"* CODIGO:2620411 ";
gotoxy(15,14);cout<<"* ";
gotoxy(15,15);cout<<"* Fecha: 23 MARZO DEL 2007 ";
gotoxy(15,16);cout<<"* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *";
gotoxy(1,18);cout<<"Bienvenido!!! Este programa le ayudara a controlar el ingresso al";
gotoxy(1,19);cout<<"jardin infantil segun la edad de sus estudiantes:";
gotoxy(10,22);cout<<"Presione ENTER para continuar...";
getch();
gotoxy(1,25);cout<<"* INGRESE EL PRIMER APELLIDO DEL ALUMNO: ";
scanf("%s",&apellido1);
gotoxy(1,26);cout<<"* INGRESE EL SEGUNDO APELLIDO DEL ALUMNO: ";
scanf("%s",&apellido2);
gotoxy(1,27);cout<<"* INGRESE EL NOMBRE DEL ALUMNO: ";
scanf("%s",&nombrealumno);
gotoxy(15,28);cout<<"* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *";
gotoxy(1,29);cout<<"* INGRESE EL PRIMER APELLIDO DEL PADRE: ";
scanf("%s",&apellidopadre);
gotoxy(1,30);cout<<"* INGRESE EL SEGUNDO APELLIDO DEL PADRE: ";
scanf("%s",&apellidopadre2);
gotoxy(1,31);cout<<"* INGRESE EL NOMBRE DEL PADRE: ";
scanf("%s",&nombrepadre);
gotoxy(15,32);cout<<"* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *";
gotoxy(1,33);cout<<"* INGRESE LA EDAD DEL ALUMNO ";
scanf("%f",&edad);
total=edad;
if (total<=1)
{total=total;}
else
if (total<=4)
{total=2*total;}
else
if (total<=5)
{total=3*total;}
else
if (total>5)
{total=1000*total;}
gotoxy(5,40);cout<<"EL ALUMNO PERTENECE AL GRUPO DE: "<<total<<" FELICITACIONES.";
getch();
}
#include<stdio.h>
#include<conio.h>
#include<dos.h>
#include <iostream.h>
#include <conio.h>
#include <ctype.h>
void main()
{
int cont;
float edad,total;
char apellido1[15],apellido2[15],nombrealumno[15],apellidopadre[15],apellidopadre2[15],nombrepadre[15];
cont=0;
clrscr();
gotoxy(15,2);cout<<"* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *";
gotoxy(15,3);cout<<"* CURSO DE PROGRAMACION C++ ";
gotoxy(15,4);cout<<"* ============================ ";
gotoxy(15,5);cout<<"* ";
gotoxy(15,6);cout<<"* ";
gotoxy(15,7);cout<<"* Programa para controlar ingreso al jardin MICKY MUOUSE ";
gotoxy(15,8);cout<<"* ";
gotoxy(15,9);cout<<"* FUNDACION UNIVERSITARIA INPAHU ";
gotoxy(15,10);cout<<"* FACULTAD DE NUEVAS TECNOLOGIAS ";
gotoxy(15,11);cout<<"* ";
gotoxy(15,12);cout<<"* Elaborado por: ANGELICA ROMERO ";
gotoxy(15,13);cout<<"* CODIGO:2620411 ";
gotoxy(15,14);cout<<"* ";
gotoxy(15,15);cout<<"* Fecha: 23 MARZO DEL 2007 ";
gotoxy(15,16);cout<<"* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *";
gotoxy(1,18);cout<<"Bienvenido!!! Este programa le ayudara a controlar el ingresso al";
gotoxy(1,19);cout<<"jardin infantil segun la edad de sus estudiantes:";
gotoxy(10,22);cout<<"Presione ENTER para continuar...";
getch();
gotoxy(1,25);cout<<"* INGRESE EL PRIMER APELLIDO DEL ALUMNO: ";
scanf("%s",&apellido1);
gotoxy(1,26);cout<<"* INGRESE EL SEGUNDO APELLIDO DEL ALUMNO: ";
scanf("%s",&apellido2);
gotoxy(1,27);cout<<"* INGRESE EL NOMBRE DEL ALUMNO: ";
scanf("%s",&nombrealumno);
gotoxy(15,28);cout<<"* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *";
gotoxy(1,29);cout<<"* INGRESE EL PRIMER APELLIDO DEL PADRE: ";
scanf("%s",&apellidopadre);
gotoxy(1,30);cout<<"* INGRESE EL SEGUNDO APELLIDO DEL PADRE: ";
scanf("%s",&apellidopadre2);
gotoxy(1,31);cout<<"* INGRESE EL NOMBRE DEL PADRE: ";
scanf("%s",&nombrepadre);
gotoxy(15,32);cout<<"* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *";
gotoxy(1,33);cout<<"* INGRESE LA EDAD DEL ALUMNO ";
scanf("%f",&edad);
total=edad;
if (total<=1)
{total=total;}
else
if (total<=4)
{total=2*total;}
else
if (total<=5)
{total=3*total;}
else
if (total>5)
{total=1000*total;}
gotoxy(5,40);cout<<"EL ALUMNO PERTENECE AL GRUPO DE: "<<total<<" FELICITACIONES.";
getch();
}
Valora esta pregunta


0