Hi,

I am new to c++.

Below are 2 functions that I have created.

But they do not work, I was just hoping someone could point out the error of my ways.

I am tryin to scale the coordinates of a line.

Thanking you in advance.

Code:`void scaling (double line[][3])`

{

//double a=0;

double s;

double new_line2[2][3];

double scaling_matrix[3][3];

scaling_matrix[0][0]=s;

scaling_matrix[1][0]=0;

scaling_matrix[2][0]=0;

scaling_matrix[0][1]=0;

scaling_matrix[1][1]=s;

scaling_matrix[2][1]=0;

scaling_matrix[0][2]=0;

scaling_matrix[1][2]=0;

scaling_matrix[2][2]=s;

printf("\nHow much would you like to scale the line by?\nEnter a value between 0 and 1:");

scanf("%lf", &s);

scaling_multiplication(line[2][3], scaling_matrix[3][3], new_line2[2][3]);

//scaling_multiplication(line[1], scaling_matrix, new_line2[1]);

printf("\nThe new start coordinates are: (%lf,%lf,%lf)", new_line2[0][0], new_line2[0][1], new_line2[0][2]);

printf("\nThe new end coordinates are: (%lf,%lf,%lf)", new_line2[1][0], new_line2[1][1], new_line2[1][2]);

}

void scaling_multiplication (double D[2][3], double E[3][3], double F[2][3])

{

F=D[2][3]*E[3][3];

}