C++ Triangle 2D Translate and Rotate Help

I’m having a little trouble getting this to work with a triangle. If it were just a rectangle I could use width and height instead of 3 verteces. I’m having trouble even wrapping my head around the logic since I need an array for Vertex A,B and C, at least I think I do.

Basically, I need to have a user input the three verteces of a triangle, the amount they want to translate the triangle both horizontally and vertically (dx, dy) and the rotation amount (theta). I need it to calculate the traslation by multiplication and the rotation then output the new verteces to the screen.

[SIZE=2][COLOR=#0000ff]
#include[/COLOR][/SIZE][SIZE=2] [/SIZE][SIZE=2][COLOR=#a31515]"stdafx.h"
[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]#include[/COLOR][/SIZE][SIZE=2] [/SIZE][SIZE=2][COLOR=#a31515]<math.h>
[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]#include[/COLOR][/SIZE][SIZE=2] [/SIZE][SIZE=2][COLOR=#a31515]<ctype.h>
[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]#include[/COLOR][/SIZE][SIZE=2] [/SIZE][SIZE=2][COLOR=#a31515]<iostream>
[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]#define[/COLOR][/SIZE][SIZE=2] DegreesToRads 0.017453293f
[/SIZE][SIZE=2][COLOR=#0000ff]using[/COLOR][/SIZE][SIZE=2] [/SIZE][SIZE=2][COLOR=#0000ff]namespace[/COLOR][/SIZE][SIZE=2] std;
[/SIZE][SIZE=2][COLOR=#008000]//Define the Matrix3X3 type.
[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]typedef[/COLOR][/SIZE][SIZE=2] [/SIZE][SIZE=2][COLOR=#0000ff]struct
[/COLOR][/SIZE][SIZE=2]{
[/SIZE][SIZE=2][COLOR=#0000ff]float[/COLOR][/SIZE][SIZE=2] index[3][3];
} Matrix3X3;
[/SIZE][SIZE=2][COLOR=#008000]//Define the Matrix3X1 type.
[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]typedef[/COLOR][/SIZE][SIZE=2] [/SIZE][SIZE=2][COLOR=#0000ff]struct
[/COLOR][/SIZE][SIZE=2]{
[/SIZE][SIZE=2][COLOR=#0000ff]float[/COLOR][/SIZE][SIZE=2] index[3][1];
} Matrix3X1;
Matrix3X3 createRotationCombo([/SIZE][SIZE=2][COLOR=#0000ff]float[/COLOR][/SIZE][SIZE=2] theta);
Matrix3X1 translate2DByMultiplication(Matrix3X1 start, [/SIZE][SIZE=2][COLOR=#0000ff]float[/COLOR][/SIZE][SIZE=2] dx, [/SIZE][SIZE=2][COLOR=#0000ff]float[/COLOR][/SIZE][SIZE=2] dy);
[/SIZE][SIZE=2][COLOR=#0000ff]void[/COLOR][/SIZE][SIZE=2] rotate2D();
[/SIZE][SIZE=2][COLOR=#008000]// Begin main() 
[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]void[/COLOR][/SIZE][SIZE=2] main()
{
}
Matrix3X3 createRotationCombo([/SIZE][SIZE=2][COLOR=#0000ff]float[/COLOR][/SIZE][SIZE=2] theta)
{
Matrix3X3 temp;
Matrix3X1 result;
temp = createFixed3X3Matrix(0);
temp.index[0] [0] = cos(DegreesToRads(theta));
temp.index[1] [1] = cos(DegreesToRads(theta));
temp.index[2] [2] = 1;
temp.index[0] [1] = -1*(sin(DegreesToRads(theta)));
temp.index[1] [0] = sin(DegreesToRads(theta));
temp.index[2] [2] = 1;
result = multiplyMatrixNxM(temp, start);
[/SIZE][SIZE=2][COLOR=#0000ff]return[/COLOR][/SIZE][SIZE=2] result;
}
Matrix 3X1 translate2DByMultiplication(Matrix3X1 start, [/SIZE][SIZE=2][COLOR=#0000ff]float[/COLOR][/SIZE][SIZE=2] dx, [/SIZE][SIZE=2][COLOR=#0000ff]float[/COLOR][/SIZE][SIZE=2] dy)
{
Matrix 3X3 temp;
Matrix3X1 result;
[/SIZE][SIZE=2][COLOR=#008000]//Zero out the matrix.
[/COLOR][/SIZE][SIZE=2]temp = createFixed3X3Matrix(0);
[/SIZE][SIZE=2][COLOR=#008000]//setup the 3x3 for multiplication
[/COLOR][/SIZE][SIZE=2]temp.index[0][0] = 1;
temp.index[1][1] = 1;
temp.index[2][2] = 1;
[/SIZE][SIZE=2][COLOR=#008000]//put in the translation amount
[/COLOR][/SIZE][SIZE=2]temp.index[0][2] = dx;
temp.index[1][2] = dy;
result = mulitplyMatrixNxM(temp,start);
[/SIZE][SIZE=2][COLOR=#0000ff]return[/COLOR][/SIZE][SIZE=2] result;
 
[/SIZE][SIZE=2][COLOR=#0000ff]void[/COLOR][/SIZE][SIZE=2] rotate2D
{ 
Matrix 3X1 A, B, C, temp;
[/SIZE][SIZE=2][COLOR=#0000ff]float[/COLOR][/SIZE][SIZE=2] vertx1, vertx2, vertx3, verty1, verty2, verty3, dx, dy, theta;
cout<<[/SIZE][SIZE=2][COLOR=#a31515]"We will now translate and rotate a triangle in 2D. 
"[/COLOR][/SIZE][SIZE=2];
cout<<[/SIZE][SIZE=2][COLOR=#a31515]"Please enter the coordinates, the value of the translation and the rotation.
"
[/COLOR][/SIZE][SIZE=2]cout<<[/SIZE][SIZE=2][COLOR=#a31515]"Enter the first vertex of the triangle's X value:
"
[/COLOR][/SIZE][SIZE=2]cin>>vertx1;
cout<<[/SIZE][SIZE=2][COLOR=#a31515]"Enter the first vertex of the triangle's Y value:
"
[/COLOR][/SIZE][SIZE=2]cin>>verty1;
cout<<[/SIZE][SIZE=2][COLOR=#a31515]"Enter the second vertex of the triangle's X value:
;
[/COLOR][/SIZE][SIZE=2]cin>>vertx2;
cout<<[/SIZE][SIZE=2][COLOR=#a31515]"Enter the second vertex of the triangle's Y value:
;
[/COLOR][/SIZE][SIZE=2]cin>>verty2;
cout<<[/SIZE][SIZE=2][COLOR=#a31515]"Enter the third vertex of the triangle's X value:
;
[/COLOR][/SIZE][SIZE=2]cin>>vertx3;
cout<<[/SIZE][SIZE=2][COLOR=#a31515]"Enter the third vertex of the triangle's Y value:
;
[/COLOR][/SIZE][SIZE=2]cin>>verty3;
cout<<[/SIZE][SIZE=2][COLOR=#a31515]"Enter the amount of dx units to translate horizontally:
;
[/COLOR][/SIZE][SIZE=2]cin>>dx;
cout<<[/SIZE][SIZE=2][COLOR=#a31515]"Enter the amount of dy units to translate vertically:
;
[/COLOR][/SIZE][SIZE=2]cin>>dy;
start.index[2] = 1;
cout<<endl;
cout<<[/SIZE][SIZE=2][COLOR=#a31515]"Enter the rotation angle in degrees:
"
[/COLOR][/SIZE][SIZE=2]cin>>theta;
temp = rotate2D(A, B, C, theta);
cout<<[/SIZE][SIZE=2][COLOR=#a31515]"The Y coordinate of the first vertex is <<verty1,,"[/COLOR][/SIZE][SIZE=2],[/SIZE][SIZE=2][COLOR=#a31515]"<<A.index[1]<<"[/COLOR][/SIZE][SIZE=2]
[/SIZE][SIZE=2][COLOR=#a31515]";
[/COLOR][/SIZE][SIZE=2]cout<<[/SIZE][SIZE=2][COLOR=#a31515]"The X coordinate of the first vertex is <<vertx1,,"[/COLOR][/SIZE][SIZE=2],[/SIZE][SIZE=2][COLOR=#a31515]"<<A.index[0]<<"[/COLOR][/SIZE][SIZE=2]
[/SIZE][SIZE=2][COLOR=#a31515]";
[/COLOR][/SIZE][SIZE=2]cout<<[/SIZE][SIZE=2][COLOR=#a31515]"The Y coordinate of the second vertex is <<verty2,,"[/COLOR][/SIZE][SIZE=2],[/SIZE][SIZE=2][COLOR=#a31515]"<<B.index[1]<<"[/COLOR][/SIZE][SIZE=2]
[/SIZE][SIZE=2][COLOR=#a31515]";
[/COLOR][/SIZE][SIZE=2]cout<<[/SIZE][SIZE=2][COLOR=#a31515]"The X coordinate of the second vertex is <<vertx2,,"[/COLOR][/SIZE][SIZE=2],[/SIZE][SIZE=2][COLOR=#a31515]"<<B.index[0]<<"[/COLOR][/SIZE][SIZE=2]
[/SIZE][SIZE=2][COLOR=#a31515]";
[/COLOR][/SIZE][SIZE=2]cout<<[/SIZE][SIZE=2][COLOR=#a31515]"The Y coordinate of the third vertex is <<verty3,,"[/COLOR][/SIZE][SIZE=2],[/SIZE][SIZE=2][COLOR=#a31515]"<<C.index[1]<<"[/COLOR][/SIZE][SIZE=2]
[/SIZE][SIZE=2][COLOR=#a31515]";
[/COLOR][/SIZE][SIZE=2]cout<<[/SIZE][SIZE=2][COLOR=#a31515]"The X coordinate of the third vertex is <<vertx3,,"[/COLOR][/SIZE][SIZE=2],[/SIZE][SIZE=2][COLOR=#a31515]"<<C.index[0]<<"[/COLOR][/SIZE][SIZE=2]
[/SIZE][SIZE=2][COLOR=#a31515]";
[/COLOR][/SIZE][SIZE=2]cout<<[/SIZE][SIZE=2][COLOR=#a31515]"The dy translation is <<dy,,"[/COLOR][/SIZE][SIZE=2],[/SIZE][SIZE=2][COLOR=#a31515]"<<temp.index[1]<<"[/COLOR][/SIZE][SIZE=2]
[/SIZE][SIZE=2][COLOR=#a31515]";
[/COLOR][/SIZE][SIZE=2]cout<<[/SIZE][SIZE=2][COLOR=#a31515]"The dx translation is <<dx,,"[/COLOR][/SIZE][SIZE=2],[/SIZE][SIZE=2][COLOR=#a31515]"<<temp.index[0]<<"[/COLOR][/SIZE][SIZE=2]
[/SIZE][SIZE=2][COLOR=#a31515]";
[/COLOR][/SIZE][SIZE=2]}
[/SIZE]

The errors I am getting are:

Error 1 error C3861: ‘createFixed3X3Matrix’: identifier not found c:\users\crowley\documents\visual studio 2005\projects\gsp220_week7lab\gsp220_week7lab\gsp220_week7lab.cpp 36
Error 2 error C2064: term does not evaluate to a function taking 1 arguments c:\users\crowley\documents\visual studio 2005\projects\gsp220_week7lab\gsp220_week7lab\gsp220_week7lab.cpp 38

for starters. There are 38 errors total. Thanks in advance for any help you offer me.