I want to multiply an array_a[2][3] by another array_b[3][3] and have the results in a final array_c[2][3].
I think some of the code above may be correct but I have a feeling the...
Type: Posts; User: dlf
I want to multiply an array_a[2][3] by another array_b[3][3] and have the results in a final array_c[2][3].
I think some of the code above may be correct but I have a feeling the...
My code now works with no errors. THANK YOU.
But when I run the program and use the scaling function, I get incorrect values. Ar emy equations correct?
void scaling (double line[][3])
{
...
Thanks for the help. I have made the change.
The program now runs, where as it didn't before but it comes up with an error when I try to use the scaling function.
Any suggestions?
void...
Can anyone please explain what this error message means?
error 139 - Argument no 2 of 'scaling_multiplication' must be of type '<ptr>(double[3])', not 'int[3][3]'
My code is below:
void...
Thanks for your help, sorry to have bothjered you. Just one last question.
Is this along the right lines?
void scaling (double line[][3])
{
//double a=0;
double s;
I'm pretty sure that is a valid position in myArray.
Is there any more advice you could give me because I just can't get my code to work, it won't even compile.
Thank you for your help.
For instance, can you name any position: row and column in the original line that is out of bounds of the scaling array?
How do you mean out of bounds? My line only has 2 points a strat and an...
Honestly, I did write the code I have so far. I am just not very confident. I read in some notes I have that when scaling you have to multiply the points matrix by the scaling matrix. It then goe son...
I'm sorry to be a pain and i am very grateful for your help, but I don't understand your last post, my knowledge is very basic. Sorry.
I'm sorry to be a pain and i am very grateful for your help, but I don't understand your last post, my knowledge is very basic. Sorry.
I have edited the code, but I am slightly confused because the size of the scaling_matrix is different to the size of the line and new line matrix.
void scaling (double line[][3])
{
...
Thanks for your help.
I took on board what you said and changed my code.
But I still get errors which I don't understand.
(172) : error 139 - Argument no 1 of 'scaling_multiplication' must...
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...
If I had 2 arrays for 2 points and each point had a x, y and z coordinate.
How would I add a translation for point 1 in one line and point 2 in another line?
So 2 lines of code to add 3...
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...
Thanks for replying.
I read the FAQ before posting my thread. The only option that seemed possible was option1.
#include <conio.h>
int main(void)
{
Hi everyone,
I am very new to C++ and have only started learning/understanding the language.
I am trying to create a very simple program - a basic menu system.
I've started with code like...