THX a bunch dude :) . you made my day. actually i did thousands of searches except the one u did :D . i was searching about polynomials so yeah...
so previously "q" was'nt a pointer but now with what you said i made it a otherwise i had work it out with "fixed (){} " >.>
thx again
User Profile
Collapse
-
Changing the address of a New struct in a loop?!
Hi guys,
i'm writing a simple code which is about polynomials using link lists in C#. the problem i have is that whenever it creates a new struct (node) in the for loop it gives it the same address as the previous node was given. so how do i fix it ? here is my struct :
struct poly { public int coef; public int pow; public poly* link;} ;
and here is the where the problem occurs:
for (;...
No activity results to display
Show More
Leave a comment: