not working

can any1 help me get this to work properly?
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
/*
Progam name:Artist.ccp
Author: Ayden Fountain
Date: 14/5/2008
Purpose:develop a programme for a self employed painter
*/

#include <iostream.h>
#include <conio.h>
#include <cType.h>



int main ()
{
 char cType;
 int iTtol=0, iPtol=0, iStol=0, iTjob=0, iPjob=0, iSjob=0;
 int iTmin=0, iPmin=0, iSmin=0, imins=0;
 cout << "Please enter the activity \n";
 cin.seekg(0);
 cin >>cType ;

  //cType = toupper(cType);

  cout << "please enter the minutes worked on each job \n";
  cin >>imins;
  while (imins > 9 || !cin.good())
  if (cType = 'A')
  {
  		cout << "error not correct value of minutes \n";
      cin.seekg(0);
      cin.clear();
  		cin >> cType;
      }
 while (!((cType == 'T') || (cType == 'P') || (cType == 'S') || (cType == 'X')))
 {
 cout << "error incorrect input \n";
 cin.seekg(0);
 cin.clear();
 cin >> cType;
 //cType = toupper(cType);

 }
   iTtol++;
	if (cType == 'T')
	{
			iTtol ++;
	}
	else if (cType == 'P')
	{

			iPtol ++;
	}
	else (cType == 'S');
	{
			iStol ++;
	}
   while (!((cType == 'T') || (cType == 'P') || (cType == 'S') || (cType == 'X')))
 {
 cout << " error incorrect input";
 cin.seekg(0);
 cin.clear();
 cin >> cType;
 //cType = toupper(cType);
	}

float fTjob, fPjob, fSjob, fgrand;

if (fgrand=0)
{
fTjob =(iTjob)*0.5;



fSjob =(iSjob)*0.8;



fPjob =(iPjob*1.0);
}

 (fgrand=0);
float (fgrand = fTjob + fPjob + fSjob);
clrscr();
cout << "costs are " << fgrand;

getch();
}
Can you give a little information on how exactly this program is supposed to perform?

~psault
Topic archived. No new replies allowed.