This is the code i'm trying to define in scene.cpp but i'm stucked.
#include <iostream>
#include <iostream>
#include <iostream>
#include "scene.h"
using namespace std;
int main()
{
Triangle::Triangle();
Triangle:AddTriangle(Point mp1, Point p2, Point p3)
{
}
void Triangle:Draw()
{
}
Scene::Scene();
void Scene:AddTriangle(mp1, Point p2, Point p3)
{
}
void Scene:Draw()
{
}
return 0;
}
>>>>>>>>>>>>>>this is scene.h>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
class Point
{
public:
int mX, mY;
};
class Triangle
{
private:
Point mP1, mP2, mP3;
public:
Triangle();
Triangle(Point mP1, Point mP2, Point mP3);
void Draw();
};
class Scene
{
private:
Triangle mTriangles[10];
int mCount;
public:
Scene();
void AddTriangle(Triangle temp);
void Draw();
};