Re: Please help me, i got message Assertation falure line 47 _block_type_is_valid(phead->nBlockType) with following code
- From: "Mani" <usman911@xxxxxxxxx>
- Date: 24 Feb 2006 13:36:47 -0800
thanx for your comment sir/mame,
I have used the 0 to m-1 and 0 to n-1 convention in my 2d injdexes,
when i have to convert it, i simple multiply the col no ie, n to the
first index and add it to the second index to get the real location in
the array.
let Matrix A(3,3);
eg, A.insert(1,2,45); // the e array has 0-8 positions
m = 3, n= 3, conversion formula = i*n + j
e indexes i, j i*n+j result
0= 0,0 = 0*3+0 = 0
1= 0,1 = 0*3+1 = 1
2= 0,2 = 0*3+2 = 2
3= 1,0 = 1*3+0 = 3
4= 1,1 = 1*3+1 = 4
5= 1,2 = 1*3+2 = 5
6= 2,0 = 2*3+0 = 6
7= 2,1 = 2*3+1 = 7
8= 2,2 = 2*3+2 = 8
the insert fucntion will work according to my idea as above and should
work fine same as pull. but it does not im confused can u suggest a
sol? sir/ mame please!!!
.
- References:
- Prev by Date: Re: Please help me, i got message Assertation falure line 47 _block_type_is_valid(phead->nBlockType) with following code
- Next by Date: Re: Please help me, i got message Assertation falure line 47 _block_type_is_valid(phead->nBlockType) with following code
- Previous by thread: Re: Please help me, i got message Assertation falure line 47 _block_type_is_valid(phead->nBlockType) with following code
- Next by thread: Re: Please help me, i got message Assertation falure line 47 _block_type_is_valid(phead->nBlockType) with following code
- Index(es):
Loading