Hello everyone,
I am very new to c++ and only know the basics.
I am having problems with the code below. I want the user to be able to specify 3 coordinates which can then be added to 3 other coordinates (already specified earlier on in the program) to allow a line to be translated.
(I hope that makes sense)
Just wondering if anyone could give me some advice or tips?
Thanking you all in advance,
dlf.
Code:
void translate_line(double line[][3])
{
double translation [2][3];
printf("\nHow much would you like to translate the line by?\n(Between -1000 and 1000):");
scanf("%lf, %lf, %lf", &translation[0][0], &translation[0][1], &translation[0][2]);
double translate_line=[line]+[translation]
//double translateda=((line[0][0])+(translation[][0]),(line[0][1])+(translation[][1]),(line[0][2])+(translation[][2]));
//double translatedb=((line[1][0])+(translation[][0]),(line[1][1])+(translation[][1]),(line[1][2])+(translation[][2]));
printf("\nThe new start coordinates are: (%lf,%lf,%lf)", translate_line);
//printf("\nThe new end coordinates are: (%lf,%lf,%lf)", translatedb);
}