Hey guys.
I attempted to compile what I have done so far and recived two bizzare messages from the compiler refering to files with the software. The program seems to compile ok without any syntax errors. I really do not know how to get rid of these errors, please help!
main:
Code:
#include "heartrates.h"
#include <iostream>
// main function - begin program execution
//
int main ( void )
{
HeartRates hr( "", "", 0, 0, 0 );
std::cin.get(); // prevent console closing in debug state
}
heartrate.h
Code:
#ifndef HEARTRATES_H
#define HEARTRATES_H
#include <string>
class HeartRates
{
public:
HeartRates ( std::string, std::string, int, int, int );
void setFirstName ( std::string );
void setLastName ( std::string );
void setDay ( int );
void setMonth ( int );
void setYear ( int );
std::string getFirstName() const;
std::string getLastName() const;
int getDay() const;
int getMonth() const;
int getYear() const;
int getAge() const;
int getMaximumHeartRate() const;
int getTargetHeartRate() const;
private:
std::string firstName,
lastName;
int day,
month,
year;
};
#endif // heartrates.h
heartrates.cpp ( unfinished )
Code:
#include "heartrates.h"
#include <iostream>
// constructor - ensure data member begin in a legal state
HeartRates::HeartRates ( std::string first, std::string last,
int dy, int mth, int yr )
{
}
The errors:
Code:
c:\program files\microsoft visual studio 9.0\vc\include\codeanalysis\sourceannotations.h(19) : error C2144: syntax error : '__w64 unsigned int' should be preceded by ';'
c:\program files\microsoft visual studio 9.0\vc\include\codeanalysis\sourceannotations.h(19) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int