I Need Help with Main.cpp in C++

Its been a awhile since I Used C++. I have the header file and the class.cpp but i lost the main.cpp that I used to run the program and I cant remember it.I was wondering if anyone could help. the program is supposed to have a method called Hitscore that adds a score between 0 and 1000 inputted by the user to the total score and increases level by one and print the score to the screen and which level they last completed after each entry . Have the user continue inputting scores to the program until the gamer has finished all 10 levels. After 10 levels, use a method you create called PassScore to have the program compare the score to avgscore (5000). If the score is less than avgscore, have the code respond "You are not angry at all. " if it is above avgscore, then have it respond "You seem quite angry, calm down. " and if it is exactly 5000, have it respond "Average, just average. "

//Angrybird.h
#ifndef ANGRYBIRD_H
#define ANGRYBIRD_H
using namespace std;


class Angrybird
{
public:

float newscore;
float level;

friend istream& operator>>( istream&, Angrybird& d);

void Hitscore (float newscore);
void PassScore();

float nextlevel;


};




#endif //ANGRYBIRD_H

//Angrybird.cpp

#include <iostream>
using namespace std;
#include "Angrybird.h"
float score;


istream& operator>>( istream& stream, Angrybird& d)
{
float s;
cout << "Enter Score" << endl;
stream >> s;
d.Hitscore(s);
return stream;
}
void Angrybird::Hitscore(float newscore)
{
if(newscore >=0 && newscore <= 1000)
{
score = score + newscore;
nextlevel++;
cout << "Your current total score is " << score << " after completing level " << nextlevel << endl;
}
if (newscore < 0 || newscore >1000)
{
nextlevel++;
cout << "You Made a Mistake Try Again" << endl;
}
}

void Angrybird::PassScore()
{
if ( nextlevel == 10)
{
if (score < 5000)
{
cout << "You are not angry at all." << endl;
}
if (score > 5000)
{
cout << "You seem quite angry, calm down." << endl;
}
if (score == 5000)
{
cout << "Average, just average." << endl;
}
}


}

Topic archived. No new replies allowed.