I have solved the problem.

//Roation around the Origin
//Individual matrices
#include "graphics.h"
#include "Vector2d.h"
#include "Coordinates2d.h"
#include "Polygon2d.h"
#include <math.h>
#include <iostream>
#define PI 3.141
#define DEG 45.00f
#define RAD 6.283185308 / (360.0 / DEG)
int main()
{
////////////////////////////////////////
Coordinates2d::ShowWindow("Roation around the origin(individual matrices)");
////////////////////////////////////////
Matrix a(1,3);
a.SetItem(0,0,0); a.SetItem(0,1,0); a.SetItem(0,2,0);
a.Show();
Matrix b(1,3);
b.SetItem(0,0,140); b.SetItem(0,1,0); b.SetItem(0,2,0);
b.Show();
Matrix c(1,3);
c.SetItem(0,0,140); c.SetItem(0,1,100); c.SetItem(0,2,0);
c.Show();
Matrix d(1,3);
d.SetItem(0,0,0); d.SetItem(0,1,100); d.SetItem(0,2,0);
d.Show();
Matrix rot(3,3);
rot.SetItem(0,0,cos(RAD)); rot.SetItem(0,1,sin(RAD)); rot.SetItem(0,2,0);
rot.SetItem(1,0,-sin(RAD)); rot.SetItem(1,1,cos(RAD)); rot.SetItem(1,2,0);
rot.SetItem(2,0,0); rot.SetItem(2,1,0); rot.SetItem(2,2,1);
rot.Show();
Matrix ma;
ma = a.Multiply(rot);
ma.Show();
Matrix mb;
mb = b.Multiply(rot);
mb.Show();
Matrix mc;
mc = c.Multiply(rot);
mc.Show();
Matrix md;
md = d.Multiply(rot);
md.Show();
Polygon2d poly;
poly.Add(0, 0);
poly.Add(140, 0);
poly.Add(140, 100);
poly.Add(0, 100);
Coordinates2d::Draw(poly, Yellow);
Polygon2d poly2;
poly2.Add(ma.GetItem(0,0), ma.GetItem(0,1));
poly2.Add(mb.GetItem(0,0), mb.GetItem(0,1));
poly2.Add(mc.GetItem(0,0), mc.GetItem(0,1));
poly2.Add(md.GetItem(0,0), md.GetItem(0,1));
Coordinates2d::Draw(poly2, LightGreen);
////////////////////////////////////////
Coordinates2d::Wait();
////////////////////////////////////////
}

