Hmm.... nope.
Heres the code
Code:
#include <iostream.h>
#include <stdlib.h>
#include <conio.c>
#include <windows.h>
#include <stdio.h>
int count = 0;
int stop = 0;
float prc;
int itmnum = 1;
int qty;
static float sub;
void subttl();
void getprc();
void getqty();
void title();
int main (int argc, char *argv[])
{
for(int count = 0; count < 20 && stop == 0; count++){
do{
system("CLS");
gotoxy(0,0);
title();
subttl();
gotoxy(10,7);
getprc();
subttl();
gotoxy(10,8);
getqty();
itmnum = itmnum + 1;
}
while(stop == 0);
}
getchar();
return 0;
}
void title()
{
textcolor(WHITE);
cout<<"Cash Register v.2.0b\n"
<<"_____________________________";
}
void getprc()
{
cout<<"Enter Price of item number "<<itmnum<<": "; cin>>prc;
if(prc == 0){
stop = 1;
}
}
void getqty()
{
cout<<"Enter Quantity: "; cin>>qty;
}
void subttl()
{
gotoxy(20,17);
sub = prc*qty;
cout<<"Subtotal: "<<sub;
}