Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. xS73v3x

    this is making NO sense.

    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?
  2. xS73v3x

    this is making NO sense.

    oh and i printed out the values of minX1, maxX1..ect, after the function findMinMaxPts has been called and they are like they should be...
  3. xS73v3x

    this is making NO sense.

    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...
  4. xS73v3x

    this is making NO sense.

    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 :\
  5. xS73v3x

    this is making NO sense.

    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 << &quot;A&quot; << endl; to see if it was getting to that, and all of...
  6. xS73v3x

    Getting a string out of a file

    Im dumb the solution was just to do myFile >> str; =D
  7. xS73v3x

    Getting a string out of a file

    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...
  8. xS73v3x

    Handling File Data

    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...
  9. xS73v3x

    $ENV{'REMOTE_ADDR'}

    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?
  10. xS73v3x

    How to get a number from a file

    Thanks Cheryl! chop worked great, and icrf, using it as-is doesnt work, otherwise i wouldnt have posted this :-)
  11. xS73v3x

    How to get a number from a file

    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! (&quot;3\n&quot;) how can i extract just the number so i can use it in a for loop?

Part and Inventory Search

Back
Top