Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


MzDay

Member Since 04 Dec 2012
Offline Last Active Oct 21 2013 04:25 AM

Posts I've Made

In Topic: Effective C++ (book)

20 September 2013 - 09:26 AM

Maybe I'll buy it used because non of the library's near me have those books.. (and i cant request them :\)

What should I start with?

And @Matt-D, do you know when the "Effective C++11" will come out?

 

Thanks.


In Topic: Effective C++ (book)

19 September 2013 - 03:25 PM

So should i get both? :)


In Topic: Effective C++ (book)

19 September 2013 - 07:43 AM

Which one is better?

thanks.


In Topic: 2D array and pointers

06 August 2013 - 08:36 AM

UPDATE:

this seem to fixed it, im not sure way.. can you explain please?:
 

#include <iostream>

void reset_2D_dbl_array(double *p, int nrows, int ncols);

int main(){
    double big_matrix[10][10];
    reset_2D_dbl_array(big_matrix[0],10,10);
    std::cout << big_matrix[9][2];
    std::cin.ignore();
    return 0;
}
void reset_2D_dbl_array(double *p, int nrows, int ncols){
  int n = nrows * ncols;
  while(n-- > 0){
    *p++ = 1.0;
  }
} 

In Topic: 2D array and pointers

06 August 2013 - 08:32 AM

This should hopefully clarify things a bit :-)

 

i didnt really understand much lol

um..

if i make an array like this:
int darr[10][10];

and pass it to a function, the function get an address to an array of 8 int's is that right?

meaning that i will get the start address of the whole array ?

 

i really dont get it S:

can you please explain it to me with my function? :\

thanks!


PARTNERS