can someone give me some xsample of inventory program in turbo c++
using stdio conio switch/ case with addition and multiplication
like in the grocery cashier computer
XD:D

Comments
Useless title, and then it carries on going downhill

Ugh, where to begin.

1. Don't use turbo C++, it's ancient. Go for a more modern compiler.
2. Don't use conio.h, it's not standard.
3. We aren't going to do your homework for you.

im not telling you to do some home work from me...
im just asking for same xsample because im only 1rst year student and c++ is too fresh for me ....

i want to get some xsample bec i dunno how to make like that because im not using computer in the cashier ...
ill just want to know how to use switch with addition and multiplication like in the grocery computer:'(

Thomasedicel,
You are welcome. If you are looking for samples then you are in wrong place. Have a U turn and goto the http://www.google.com. Ask for advice, suggestions, hints.

Read rules at daniweb.

Edited 7 Years Ago by __avd: n/a

#include<stdio.h>
#include<conio.h>
main()
{
int hs;
textcolor (LIGHTBLUE);
clrscr();
printf("\n [1]Shampoo");
printf("\n [2]DOG");
printf("\n [3]Mariwana");
printf("\n [4]Shaboo");
printf("\n Enter the Number of your Prodtucs:");
scanf("%d",& hs);
switch (hs)
{
case 1rintf("Shampoo 100$\n");
break;
case 2rintf("DOG 200$\n");
break;
case 3rintf("Mariwana300$\n.");
break;
case 4rintf("Shaboo400$\n.");
break;

ill just want to add something
like the number of products im buying
and total of amount

Edited 7 Years Ago by John A: added code tags

What did he JUST tell you!

Use code-tags.

Also:

Then come back with a specific question.

Comments
Guess the first question is "why doesn't it compile?" ;)
This article has been dead for over six months. Start a new discussion instead.