Search:

Type: Posts; User: cppboard05

Search: Search took 0.01 seconds.

  1. These are some seriously great replies! This...

    These are some seriously great replies! This board rocks! Here are a few additional comments:

    Micko:

    Your code is somewhat confusing but I like your method a lot... just one allocation and we...
  2. Ok, I tested it... seems to work great :D But...

    Ok, I tested it... seems to work great :D

    But what about efficiency? It seems to me this is the same thing I was doing initially but with a better syntax, which probably means the overhead and...
  3. Thanks for the correction... one memory leak less...

    Thanks for the correction... one memory leak less :)

    [QUOTE]
    Another why using vectors:

    void createMatrix(int size)
    {
    vector< vector<double> > M;
    M.resize(size);
    ...
  4. Thanks for the reply... does anybody else know if...

    Thanks for the reply... does anybody else know if the right way of dynamically creating a n*n array is:



    double **M = new double*[size];

    for (int k = 0; k < size; k++)
    M[k] = new...
  5. Newbie question: Right way of creating a matrix using the new operator?

    Hi,

    I'm trying to dynamically create a matrix, let's call it M, which can be accesed using the usual M[i][j] notation. That's it, it should behave as if I had declared it as a double M[5][5],...
Results 1 to 5 of 5