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

Salem commented: Useless title, and then it carries on going downhill -7

Recommended Answers

All 8 Replies

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:'(

What have you done so far? Here's tutorial on switch statements. Read it and try to start for yourself. Then come back with a specific question.

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.

#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

What did he JUST tell you!

Read rules at daniweb.

Use code-tags.

commented: <agent smith>it is inevitable</agent smith> +36

What did he JUST tell you!

Use code-tags.

Also:

Then come back with a specific question.

commented: Guess the first question is "why doesn't it compile?" ;) +36

Ask the Google god. Type your question into Google and all your questions
shall be answered.


Note: Not reliable for everything.

commented: lol :) +5
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.