Converter using Classes (Object Error)

Hi guys im making a converter of temps with classes and im not getting it right. any idea?

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
#include <iostream>
using namespace std;

class temps{

public:

	double C°, F°;

	double  C2F (){

		F° = (C° * 9/5 + 32);
}};

int main (){

temps objtemps;


cout << ("Please enter the value in Celsious: ");

cin>> objtemps.C°;

cout << ("The temp in F° is : ") << objtemps.C2F;

system ("pause");
}
Well for start your function that starts in line 10 says it returns a double but I see no return statement.
Topic archived. No new replies allowed.