DISPLAY HELP

why it doesnt display's anything..
plsss help



//Our Creation FILE
#include<stdlib.h>
#include<iostream.h>
#include<stdio.h>
#include<conio.h>
#define g gotoxy
#define s scanf


main()
{
int number;
//Introduction
{
clrscr();
g(30,5);cout<<"Welcome To Our Program.....";
g(20,20);cout<<"Ken Tapdasan";
g(20,22);cout<<"Allen Jay Altar";
g(20,24);cout<<"CS12-C1";

getch();
}
//Main menu
menu:
clrscr();
g(30,6);cout<<"Manila Water Billing System";
g(20,10);cout<<"1.DATA ENTRY";
g(20,12);cout<<"2.DISPLAY DATA";
g(20,14);cout<<"3.ADDING OF DATA";
g(20,16);cout<<"4.Close The Program";
g(20,20);cout<<"Enter Number : ";
g(45,20);cin>>number;
switch(number)

//input
{
case 1:
{
int CN[50];
char ta;
char Nm[50];
int A,B,C,D;
FILE *file1;
file1=fopen("MAN.txt","w");
// a=0;
input:
clrscr();
g(25,6);cout<<"Manila Water Billing-Input";
g(10,8);cout<<"Customer Number :";
g(10,10);cout<<"Enter Customer's Name :";
g(10,12);cout<<"Previous Reading :";
g(10,14);cout<<"Present Reading :";
g(40,8);s("%d",CN);
g(40,10);cin>>Nm;
g(40,12);cin>>A;
g(40,14);cin>>B;
C=B-A;
D=12.5*C;
g(10,16);cout<<"Total Cubic Meter: ";
g(10,18);cout<<"Amount To Be Paid : ";
g(40,16);cout<<C;
g(40,18);cout<<D;
fprintf(file1,"%s",Nm);
fprintf(file1,"%d",CN);
fprintf(file1,"%d",B,C,D);
g(10,22);cout<<"Continue [y/n]: ";getch();
g(45,22);cin>>ta;
if(ta=='Y' || ta=='y')

{
goto input;
}
else if(ta=='N' || ta=='n')

{
goto menu;
}
fclose(file1);



}


case 2:
//display
{
int x;
char Nm[50];
int CN[50];
int C,D;
FILE *file1;
file1=fopen("MAN.txt","r");

clrscr();
g(1,2);cout<<"===============================================================================";
g(30,3);cout<<"Customer's Info";
g(1,4);cout<<"-------------------------------------------------------------------------------";
g (1,5);cout<<"Customer Number";
g (20,5);cout<<"Name";
g (38,5);cout<<"Cubic Meter's";
g (67,5);cout<<"Bill";
for(x=0;fscanf(file1,"%d %s %d %d",&CN,&Nm,&C,&D)!=EOF;++x)
{
printf("\t%d \t%s \t%d \t%d",CN,Nm,C,D);getch();
}
printf("\n \tPress Any Key..!");getch();

fclose(file1);
{
goto menu;
}
}
case 3:
//Adding
{
char ta;
int Cn[50];
char NM[50];
int E,F,G,H;
FILE *file1;
file1=fopen("MAN.txt","a");
// a=0;
add:

clrscr();
g(25,4);cout<<"Manila Water Billing-Adding Of Records";
g(10,8);cout<<"Customer Number :";
g(10,10);cout<<"Enter Customer's Name :";
g(10,12);cout<<"Previous Reading :";
g(10,14);cout<<"Present Reading :";
g(40,8);s("%d",Cn);
g(40,10);cin>>NM;
g(40,12);cin>>E;
g(40,14);cin>>F;
G=F-E;
H=12.5*G;
g(10,16);cout<<"Total Cubic Meter: ";
g(10,18);cout<<"Amount To Be Paid : ";
g(40,16);cout<<G;
g(40,18);cout<<H;
fprintf(file1,"%s",NM);
fprintf(file1,"%d",Cn);
fprintf(file1,"%d",F,G);
g(10,22);cout<<"Continue [y/n]: ";getch();
g(45,22);cin>>ta;
if(ta=='Y' || ta=='y')
{
goto add;
}
else if(ta=='N' || ta=='n')
{
goto menu;
}
{
fclose(file1);
break;

}
case 4:
//exit
{
return (0);
}










}
}
}
It doesn't even build for me.
is there any problems with this?
Topic archived. No new replies allowed.