Search:

Type: Posts; User: dlf

Search: Search took 0.01 seconds.

  1. Replies
    18
    Views
    1,943

    I want to multiply an array_a[2][3] by another...

    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...
  2. Replies
    5
    Views
    1,005

    My code now works with no errors. THANK YOU. ...

    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])
    {
    ...
  3. Replies
    5
    Views
    1,005

    Thanks for the help. I have made the change. ...

    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...
  4. Replies
    5
    Views
    1,005

    Matrix Multiplication 2 - Error Message

    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...
  5. Replies
    18
    Views
    1,943

    Thanks for your help, sorry to have bothjered...

    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;
  6. Replies
    18
    Views
    1,943

    I'm pretty sure that is a valid position in...

    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.
  7. Replies
    18
    Views
    1,943

    For instance, can you name any position: row and...

    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...
  8. Replies
    18
    Views
    1,943

    Honestly, I did write the code I have so far. I...

    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...
  9. Replies
    18
    Views
    1,943

    I'm sorry to be a pain and i am very grateful for...

    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.
  10. Replies
    18
    Views
    1,943

    I'm sorry to be a pain and i am very grateful for...

    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.
  11. Replies
    18
    Views
    1,943

    I have edited the code, but I am slightly...

    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])
    {
    ...
  12. Replies
    18
    Views
    1,943

    Thanks for your help. I took on board what you...

    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...
  13. Replies
    18
    Views
    1,943

    Matrix Multiplication

    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...
  14. Replies
    3
    Views
    1,603

    If I had 2 arrays for 2 points and each point had...

    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...
  15. Replies
    3
    Views
    1,603

    Adding Arrays and Matrices

    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...
  16. Replies
    3
    Views
    1,106

    Thanks for replying. I read the FAQ before...

    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)
    {
  17. Replies
    3
    Views
    1,106

    C++ menu - help needed

    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...
Results 1 to 17 of 17