I still have the error.
Type: Posts; User: jadehippo
I still have the error.
opps my bad should be
struct matrix
{
int rows;
int columns;
int *elements;
};
dereferencing pointer to incomplete type.
I get that when trying to compile my code.
struct matrix *newmat(int row, int column)
{
...
struct matrix *mat;
mat->rows = row; ...
Thank you :) I forgot you could do that. Silly me, well you saved me lots of debugging time :) thanks again.
The pointer points to the array (*element = &anarray). This is done in a struct where the array is also created. The changing of values is done in another struct. I don't know if I just point to the...
I have a pointer pointing to the address of an array, how would i get it so i can change the values stored in the array in regards to the pointer?
Thank you for any help.