// Week6_1.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
int _tmain(int argc, _TCHAR* argv[])
{
int hrs = 0;
int min = 0;
int sec = 0;
cout<<"Please enter the number of hours: ";
cin>>hrs;
cout<<"Please enter the number of minutes: ";
cin>>min;
cout<<"Please enter the number of seconds: ";
cin>>sec;
Timespan ts1(hrs, min, sec);
cout << endl << endl;
cout << "Creating new TimeSpan object called ts1 using the overloaded constructor"
<< "ts1.GetTime(): " << ts1.GetTime();
cout<<endl;
system("PAUSE");
return 0;
}
"Error 8 error C2371: 'Timespan::GetTime : redefinition; different basic types" Line 15 Timespan.cpp file
"Error 7 error C2556: 'std::string Timespan::GetTime(void) : overloaded function differs only by return type from 'int Timespan::GetTime(void)" Line 15 Timespan.cpp file
"Error 1 error C2146: syntax error : missing ';' before identifier 'GetTime'" Line 18 Timespan.h file
"Error 2 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int" Line 18 Timespan.h file
I knew my issues were minor, but I was reading into the errors too much. I didn't look to see if all my files were included and such. Just one of those days man. Thanks you!