help me for erors

Write your question here.
hi . help me for erors. im beginner :)
it must be give number of product and number of sales and show total

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#include<iostream>
#include<conio.h>
using namespace std;
int main()
{
 float Acount=2.98;
float Bcount=4.50;
float Ccount=9.98;
float Dcount=4.49;
float Ecount=6.78;
float total=0;
float num;
float sales;


cin>>"enter number of product">>num;
cout<<endl;
cin>>"enter number of sales">>sales;
cout<<endl;

for(int i=0;;i++)
{
	switch (num){
		case 1:
	total+=Acount;
			total=total*sales;
			break;

	case 2:
		total+=Bcount;
			total=total*sales;
			break;
			case 3:
		total+=Ccount;
			total=total*sales;
			break;
case 4:
		total+=Dcount;
			total=total*sales;
			break;
			case 5:
		total+=Ecount;
			total=total*sales;
			break;
	}
}

			







getch();
return 0;

}
Last edited on
What errors are you getting?

Also, why did you remove the [code][/code] tags? They make it easier to read the code - please edit your post and place [code] before your code and [/code] after your code.
Last edited on
ty. :)
What errors are you getting? Hint: look at lines 16 and 18 - what do you use to output strings?

Also, conio.h is not a standard header - you shouldn't use it.
https://en.wikipedia.org/wiki/Conio.h
Last edited on
2 error but too many text is here .
and istream tab comes

Does your compiler inform you which line numbers the errors are on?
no . when i click on it just a new tab comes that is istream tab
Do you know why lines 16 and 18 don't make sense? ;)
Topic archived. No new replies allowed.