um and another thing that may be problematic, in gdb i printed out the first doLinesIntersect after the function linesIntersect was called and it was 232....how is that possible if doLinesIntersect is bool?
i guess you mean minX, maxX...ect. is undefined...
but heres the function
void tri2d :: findMinMaxPts ( int & minX, int & maxX, int & minY, int & maxY, point2d * pts )
{
minX = ( int ) pts[ a ].x;
maxX = ( int ) pts[ a ].x;
if( pts[ b ].x < minX )
minX = ( int ) pts[ b ].x;
if( pts[ b...
well it compiles and all, but the value the function returns is different.
when it works, the value returned should be true for the values i set on the entity.
when it doesnt work, the value returned is false.
So basically the cout statement makes it return a different value :\
i have a function thats part of a class which detects a collision between 2 entities ( another class i made ). The weird part is, when i was testing to see how far the program was getting because it wasnt working i put
cout << "A" << endl;
to see if it was getting to that, and all of...
This may seem kinda dumb, but i dont really know how. I have a file filled with data, which is mostly numbers, but i have to extract a few strings too. I can easily get the numbers out with
myFile >> whateverVariable;
but i tried to get the string like this:
char * str;
str = new char [ 32...
Hey im just playing around with perl (ive made a poll and a crappy message board-type-thing) and right now when i make my data i spereate similar pieces of information with special characters and later split() it. like for example if this was my forum data it would go, subject, author, message...
wheneever i use this (im using tripod) whoever it is it comes out as 10.10.17.*
whats up with that? is it just tripod or is there another environment variable i can use for an ip address?
im trying to open a file, and in it is a number i need for a for loop, but if i try to get it from the text file, for example:
$theNum = <THEFILE>;
now, $theNum will contain the number i want, and and endline! ("3\n")
how can i extract just the number so i can use it in a for loop?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.