0% found this document useful (0 votes)
52 views

Class Int Char Char Int Float Public: Consumer Cno Cname Adress A, B, C I

This document contains code for a C++ program that manages customer information for a computer shop called STAR Computers. It defines a consumer class with data members like customer ID, name, address, service numbers. Methods are defined to enter customer data, display it, and write it to a file. The main program flow will allow entering customer details, displaying them, and writing the records to a file for storage and later retrieval.

Uploaded by

aalok
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
52 views

Class Int Char Char Int Float Public: Consumer Cno Cname Adress A, B, C I

This document contains code for a C++ program that manages customer information for a computer shop called STAR Computers. It defines a consumer class with data members like customer ID, name, address, service numbers. Methods are defined to enter customer data, display it, and write it to a file. The main program flow will allow entering customer details, displaying them, and writing the records to a file for storage and later retrieval.

Uploaded by

aalok
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

/*

&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
& COMPUTER SCIENCE PROJECT WORK &
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
SOFTWARE FOR THE USE IN COMPUTERS SHOP
***INTRODUCTION***
/////////////////////////////
NAME:- BHAVISHAY NIGAM
CLASS:- XII
SEC:- 'N.M'
ROLL NO:- '8'
/////////////////////////////
####################
# STAR COMPUTERS #
####################
/*

### HEADER FILES ###

*/
#include<fstream.h>
#include<conio.h>
#include<string.h>
#include<stdio.h>
#include<process.h>
#include<iomanip.h>
#include<dos.h>
#include<graphics.h>

//for
//for
//for
//for
//for
//for
//for
//for

reading and writing files


clrscr()
string characters
gets and puts function
exit function
setw function
delay and sleep function
textcolor & textbackground

class consumer
{
int cno;
char cname[20];
char adress[20];
int a,b,c;
float i;
public:
//FUNCTION TO ENTER THE VALUES
public:
void entry()
{
clrscr();
textcolor(RED);
gotoxy(32,4);
cputs("S.T.A.R COMPUTERS");
gotoxy(5,8);
cputs("Customer ID :");
gotoxy(5,10);
cputs("Customer name :");
gotoxy(5,12);
cputs("Customer adress :");

gotoxy(5,14);
cputs("Customer
gotoxy(5,16);
cputs("Costumer
gotoxy(5,18);
cputs("Costumer
gotoxy(5,20);
cputs("Customer
gotoxy(45,8);
cin>>cno;
gotoxy(45,10);
gets(cname);
gotoxy(45,12);
gets(adress);
gotoxy(45,14);
cin>>a;
gotoxy(45,16);
cin>>b;
gotoxy(45,18);
cin>>c;
gotoxy(45,20);
cin>>i;
}

Service number :");


Smart card number :");
Phone number :");
Bill number :");

//FUNCTION TO DISPLAY THE VALUES


void display()
{
cout<<"\n\n";
gotoxy(5,8);
cputs("Customer
cout<<cno;
gotoxy(5,10);
cputs("Customer
puts(cname);
gotoxy(5,12);
cout<<"Customer
gotoxy(5,14);
cout<<"Customer
gotoxy(5,16);
cout<<"Costumer
gotoxy(5,18);
cout<<"Costumer
gotoxy(5,20);
cout<<"Customer
}
int rcno()
{
return cno;
}
}c;

ID :");
name :");
adress :"<<adress;
Service number :" <<a;
Smart card number :"<<b;
Phone number :"<<c;
Bill number :"<<i<<"\n";

//FUNCTION TO WRITE THE VALUES


void write()
{
char ch;

consumer c;
fstream f1;
c.entry();

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy