Unknown error wanting to fix this

I am getting an error C2533 this says my class is not allowed a return type but I do not see where this is coming up with a return type.

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
#include<iostream>
#include <iomanip>

using namespace std;

#include "Time.h"





	Time::Time(int h, int m, int s)
	{
          hour = h;
          minute = m;
          second = s;
          call timeHelper();
	} // ends constructor

	Time::timeHelper()
	{
		hour = (h >= 0 && h < 24) ? h : 0;
		minute = (m >= 0 && m <= 60) ? m : 0;
		second = (s >= 0 && s <= 60) ? s : 0;
	} // ends timehelper

	Time::getHour()
	{
		return hour;
	} // ends getHour function
  
	Time::getMinute()
	{
		return minute;
	} // ends getMinute

	Time::getSecond()
	{
		return second;
	} // ends getSecond

	Time::operator ++(int s)
	{
      s + 1;
	} // ends increment operator

	Time::operator --(int s)
	{
      s - 1;
	} // ends decrement operator

	Time::operator +=(int s )
	{
       s = s += s; 
	} // ends += operator

	Time::operator -=(int s )
	{
      s = s -= s
	} // ends -= operator

	ostream &operator <<(ostream &output, const Time &Time)
	{
		output << setw(2) << hour << setw(2) << minute <<setw(2) second << endl;
		return output;
	} // ends overloaded extraction operator 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Time::getHour()
	{
		return hour;
	} // ends getHour function
  
	Time::getMinute()
	{
		return minute;
	} // ends getMinute

	Time::getSecond()
	{
		return second;
	} // ends getSecond 

None of theese have a return type specified
Topic archived. No new replies allowed.