HELP!!! New Programmer Alert

Alright, I have been working on this personal project for a long time and cant seem to get it. This is someone elses code that Im working off of.
Basically the error Im running into at the moment is this:
error LNK2019: unresolved external symbol_WinMain@16 referenced in function __tmainCRTStartup
error LNK1120:1 unresolved externals

Basically I cant get past this and if I can then Im home free for the most part. Please help. My code is Below. (Also I am very very very new to this, but Im real excited about learning everything.)

fruit.h

#define _CRT_SECURE_NO_DEPRECATE
#pragma once
#include <string>
#include <opencv\cv.h>
#include <opencv\highgui.h>
using namespace std;
using namespace cv;

class Fruit
{
public:
Fruit();
~Fruit(void);

Fruit(string name);

int getXPos();
void setXPos(int x);

int getYPos();
void setYPos(int y);

Scalar getHSVmin();
Scalar getHSVmax();

void setHSVmin(Scalar min);
void setHSVmax(Scalar max);

string getType(){ return type; }
void setType(string t){ type = t; }

Scalar getColour(){
return Colour;
}
void setColour(Scalar c){

Colour = c;
}

private:

int xPos, yPos;
string type;
Scalar HSVmin, HSVmax;
Scalar Colour;
};


fruit.cpp


#include "Fruit.h"



Fruit::Fruit()
{
//set values for default constructor
setType("null");
setColour(Scalar(0, 0, 0));

}

Fruit::Fruit(string name){

setType(name);

if (name == "apple"){

//TODO: use "calibration mode" to find HSV min
//and HSV max values

setHSVmin(Scalar(0, 0, 0));
setHSVmax(Scalar(255, 255, 255));

//BGR value for Green:
setColour(Scalar(0, 255, 0));

}
if (name == "banana"){

//TODO: use "calibration mode" to find HSV min
//and HSV max values

setHSVmin(Scalar(0, 0, 0));
setHSVmax(Scalar(255, 255, 255));

//BGR value for Yellow:
setColour(Scalar(0, 255, 255));

}
if (name == "cherry"){

//TODO: use "calibration mode" to find HSV min
//and HSV max values

setHSVmin(Scalar(0, 0, 0));
setHSVmax(Scalar(255, 255, 255));

//BGR value for Red:
setColour(Scalar(0, 0, 255));

}



}

Fruit::~Fruit(void)
{
}

int Fruit::getXPos(){

return Fruit::xPos;

}

void Fruit::setXPos(int x){

Fruit::xPos = x;

}

int Fruit::getYPos(){

return Fruit::yPos;

}

void Fruit::setYPos(int y){

Fruit::yPos = y;

}

Scalar Fruit::getHSVmin(){

return Fruit::HSVmin;

}
Scalar Fruit::getHSVmax(){

return Fruit::HSVmax;
}

void Fruit::setHSVmin(Scalar min){

Fruit::HSVmin = min;
}


void Fruit::setHSVmax(Scalar max){

Fruit::HSVmax = max;
}


Please help. Im sure this will be a process though. But if you stick with me this will be big for me.
Please use code brackets for your code.
Topic archived. No new replies allowed.