So the *head is the list, *conductor is a node, and conductor->next is a link? Is there a special name for a list that loops, where the last link points to the first node? I will read the forum rules...
Type: Posts; User: seanJ
So the *head is the list, *conductor is a node, and conductor->next is a link? Is there a special name for a list that loops, where the last link points to the first node? I will read the forum rules...
Sorry, I didn't know that
it helps a lot if you take a problem and break it into smaller and smaller problems.
"take a random number of characters and numbers from the keyboard, find the smallest number and print all...
I'm new also but i think this is about what you are trying to do
int location; // which list do you want to access?
int ctr; // needs a counter to keep track of the list we are...
no, i was thinking (ctr2 < 4 || ctr 2 > 4) or (ctr2 != 4) like you said. I don't think anyone would trust anything i wrote at the moment anyway
ah! i didn't know that lol. thanks, that long line of code was bugging me
i like polly better than poly. I was looking at that, i was going to change it to < 4 and add something to dump memory and exit the function if ctr2 hits 5 in the while statement since the whole...
gah, I always do that
and a "," has to be added the the last number in the polygonvertexindex: data field inside the .fbx file in order for it to fill in the last conduit->p4.
I haven't been writing much for the past week with work but I have been making some progress and started writing this program. it still has errors like memory leaks and it's only half complete (I...
Yes, I will have too look into quaternions, I read a little about it on wikipedia but I don't understand it yet. I ran into a similar problem with "dev superman mode" camera movements but I was able...
I've been trying to build a structure that can define 3D models made of 3 point polygons and figure out the position of all of the vertices during rotations and movements. It can only rotate on the Y...
X=xCos(angle)-ySin(angle)
Y=xSin(angle)+yCos(angle)
Z=xSin(angle)+zCos(angle)
I think, so i'm just working with two axis to find a third axis.
I only recently started programing and after reading a little about vertices and polygons I was trying to figure out how rotations of vertices are calculated. I figure that if an object is composed...
What if the address was pulled out of the structure declared with malloc() into a void pointer, decremented by two, then assigned to a pointer used for the next member in the structure with that...
By setting the colors of the pixels to variables and assigning the variables values derived by using high and length as operands i've figured out how too make thick lines, divisions, gradients, and a...
worked with pragma in vs 2010 also, thanks it would have taken me a very long time too figure that out
recompiled inside of code::blocks with #pragma pack(1); declared and it worked!!
I wrote this with visual studio 2010, I have code::blocks with the minGW compiler installed also but I have to run programs inside of code::blocks or else they don't hook into the right .dll's.
...
it worked! lol can you upload the photo? I don't think I have pragma pack, at least I never installed it. the photo is 1080x1920 all grey right?
started writing this today; still new too writing files though. it's not working yet, the program runs and executes with out crashing but the file it creates can't be opened so i think i must have...
you computers memory doesn't work like that. computers do not understand base 10 number systems. they only understand binary, a base 2 number system. when you declare an int data type and send a...
everything worked fine with gets() but when I switched over too fgets() I ran into the problem that you talked about grumpy, however instead of ptr[0]->.fname only loading '\n' I ended up with this...
thanks, that really did help me out a lot. I'm surprised I missed that, I guess I was just focusing on the individual statements and not looking at the over all flow of the program. I will look at...
I tried using code::blocks with minGW also, I downloaded the entire GCC, spent an hour or two trying to figure out how to use it, then found minGW. Now I can only run programs outside of code::blocks...