CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: TBsparky

Search: Search took 0.03 seconds.

  1. Replies
    21
    Views
    19,458

    Re: Adding Two-Dimensional arrays together

    No she did not discuss the Gaussain method. As far as i know its Solving Simultaneous equations by the use of matrices
  2. Replies
    21
    Views
    19,458

    Re: Adding Two-Dimensional arrays together

    Oh yes I can calculate simultaneous equations by hand. I just found it difficult using a loop to attempt to calculate them with like addition. I just don't understand the whole calculation via a loop...
  3. Replies
    21
    Views
    19,458

    Re: Adding Two-Dimensional arrays together

    By the exact sequence of steps you mean how the program will input, calculate and display?
  4. Replies
    21
    Views
    19,458

    Re: Adding Two-Dimensional arrays together

    she has also posted the 1D Array


    1-D Arrays in C++
    #include <iostream>
    using namespace std;
    void main()
    { /* declare variables */
    int values[10];
    int i;
  5. Replies
    21
    Views
    19,458

    Re: Adding Two-Dimensional arrays together

    I think I might have the program wrong.. It's a Matrices program that calculates ONE 2D Array of rows and columns together to display a final Matrices.

    So you think if i change the values to 1...
  6. Replies
    21
    Views
    19,458

    Re: Adding Two-Dimensional arrays together

    cout<<row + col<<" ";doesn't add anything; it simply outputs current row index + current column index, which makes no sense at all.[/QUOTE]

    but when the program runs it asks for input, to put into...
  7. Replies
    21
    Views
    19,458

    Re: Adding Two-Dimensional arrays together

    Sorry let me explain. The two arrays being used are numbers [3] [4]
    which are initialized in the for loop when in the:

    "cin>>numbers[row][col]"

    So rows is array [3] and cols is array [4]

    I...
  8. Replies
    21
    Views
    19,458

    Re: Adding Two-Dimensional arrays together

    1. the two arrays are numbers [3] [4] for the rows and columns to which i have to calculate together.

    2. I'm sorry but the for loop code, for the rows and cols, is what the lecturer had posted for...
  9. Replies
    21
    Views
    19,458

    Adding Two-Dimensional arrays together

    Hey everyone, I'm having a little problem with adding two arrays together, as part of a Matrices program. Ive got the code for adding the matrices, I really dont think its right at all.

    Here's...
Results 1 to 9 of 9





Click Here to Expand Forum to Full Width

Featured