« first day (3417 days earlier)      last day (1514 days later) » 

2:07 AM
@d03 Why would I eat my pet chicks? Pets are for petting (whether they like it or not) :x
setup.bash vs setup.sh what's the main difference?
 
3:04 AM
Neighbourhood magpies come & notify their existence on the kitchen windowsill every time meat is prepared in the kitchen. How do they know that meat is being prepared in the kitchen??
 
anyone knows what value i can use as signed float max before overflowing in base 10?
1e15?
 
 
3 hours later…
6:29 AM
@JoanVenge std::numeric_limits<float>::max() or std::numeric_limits<double>::max() seem like the obvious choices.
 
 
5 hours later…
11:37 AM
 
 
1 hour later…
12:45 PM
Possum has come to steal the chicken feed again - I have forgotten a plate on the lawn.
 
 
5 hours later…
6:07 PM
hello
i need some help please with understanding deleting pointers
int **ptr_arr = new int*[3];
*(ptr_arr + 0) = new int[2];
*(ptr_arr + 1) = new int[2];
*(ptr_arr + 2) = new int[2];
How sould i delete this ?
delete[] ptr_arr[0];
delete[] ptr_arr[1];
delete[] ptr_arr[2];
delete[] ptr_arr;
 
@CătălinaSîrbu Looks OK. But why would you create such complicated structure?
 
i tried to explain multidimensional array
 
But that is 1D array of pointers.
 
Multidimensional would be int[3][2].
 
6:15 PM
yes 1D array of pointers
@wilx but you could associate the 1d array of pointers that have the same length
to an matrix
square matrix for example
and that way someone better understands
anyway i illustrate the example so i think it is suggestive enough
my compilers returns me 0 different value when i try to run this code
int **mat = new int* [4];

mat[0] = new int[1];
mat[1] = new int[2];
mat[2] = new int[3];
mat[3] = new int[4];

**(mat + 0) = 23;

mat++;

**(mat + 0) = 55;
**(mat + 1) = 231;

mat++;

**(mat + 0) = 49;
**(mat + 1) = 27;
**(mat + 2) = 27;

mat++;

**(mat + 0) = 13;
**(mat + 1) = 15;
**(mat + 2) = 27;
**(mat + 3) = 27;
and i don't understand why as there is similar to the first one which runs just fine
 
6:36 PM
can anyone help me please?
 
13
A: When a float variable goes out of the float limits, what happens?

James KanzeFormally, the behavior is undefined. On a machine with IEEE floating point, however, overflow after rounding will result in Inf. The precision is limited, however, and the results after rounding of FLT_MAX + 1 are FLT_MAX. You can see the same effect with values well under FLT_MAX. Try somet...

So, whats everybody up to?
Winter is over in Chicago
 
7:41 PM
can anyone help me ?
 
at a glance you're using raw pointers so I don't want to read it. Try using something like std::array or std::vector or for actual matrix math maybe eigen
 
yes i use raw pointers because that is the point
to understand them
 
8:03 PM
actually it would seem you can disable /MP on a per file basis
 
 
2 hours later…
10:27 PM
hello
could you please tell me what is this char8_t datatype ? Why does it states in the cppreference that is the same as unsigned char but a different type
then why does it exists
 
 
1 hour later…
11:42 PM
@CătălinaSîrbu Type systems are finicky things. Sometimes you want something that is the same width as char but that is not char. It is for UTF-8 literals, IIRC.
 

« first day (3417 days earlier)      last day (1514 days later) »