Search:

Type: Posts; User: McFury

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    13
    Views
    1,996

    Hi again, Turns out iMalc was correct......

    Hi again,

    Turns out iMalc was correct... Somewhere in the 3rd party lib's they MUST be calling '_controlfp', although I cannot find it...

    Turns out that when I checked the precision it had been...
  2. Replies
    13
    Views
    1,996

    Hi, Thanks for the discussion guys. Basically...

    Hi,

    Thanks for the discussion guys. Basically my question was just asking why executing the same code, with the same compiler, just in different projects was creating a completely different...
  3. Replies
    13
    Views
    1,996

    thanks for the reply iMalc, It is a fairly...

    thanks for the reply iMalc,

    It is a fairly large project and it uses lots of 3rd party libs I barely know about, I can't find '_controlfp' anywhere in the code though. I don't know what else could...
  4. Replies
    13
    Views
    1,996

    Quick question on double precision

    Hi,

    I am just messing around on some pre-existing project, and I noticed that if I use something like:



    double a = 1.354;
    double b = 5617963.0 + a;
  5. I open the file like this: std::ifstream...

    I open the file like this:
    std::ifstream fin(filename->c_str(), std::ifstream::in|std::ifstream::binary);

    ...

    and im reading in chunks of it at a time like this:
    extractedSize =...
  6. Thanks for the reply again codeplug, I'm now...

    Thanks for the reply again codeplug,

    I'm now reading the file in binary format but it still seems to mess slightly differently with my tellg() calls, it seems the sgetn() call is still reading in...
  7. Having issues with indexing correctly in a file

    Hi,

    I have a text data file that spreads over many lines, and i've been using fstream's 'tellg()' to gather position offsets in the file in relation to data read into a buffer from the file (I am...
  8. Replies
    1
    Views
    3,115

    Weird problem using ifstream / rdbuf

    Hi,

    I'm trying to read in large amounts of data using the rdbuf member of ifstream, it works fine as long as the bufferSize I pass into rdbuf as a parametre is an even number, but if its an odd...
  9. Replies
    1
    Views
    2,942

    A* pathfinding search function, need help

    Hi,

    I have been having trouble with a search function. It seems to find the optimal path correctly most of the time, however it runs into trouble and crashes when it needs to filter back through...
  10. Replies
    1
    Views
    1,705

    command line wildcard question

    Hi :)

    Before i start i just wanted to say that i know there is a linux programming board, but it seems like not many people post there, and seeing as this is mostly a C question too i thought it...
  11. Replies
    2
    Views
    1,491

    help with vectors again :(

    Hi again all, thanks for your help last time :)

    At the moment im having trouble implimenting a singleton class that i am using to hold a list of projectiles (representing bullets fired from an...
  12. Replies
    2
    Views
    1,393

    please could someone give me some advice on this?...

    please could someone give me some advice on this? :P
    /beg
  13. Replies
    2
    Views
    1,393

    Incrementing along a vector

    Hi again,

    Im making a program in c++ using openGL (glut) but having a little trouble figuring out how i would increment along a certain path...

    I have quite a few functions that require it like...
  14. Replies
    11
    Views
    1,663

    Ah ok, its compiling ok now at least, with those...

    Ah ok, its compiling ok now at least, with those forward declarations telling it to hold off on spamming errors at me until its done lol.

    Im sure im going to run into other complications but at...
  15. Replies
    11
    Views
    1,663

    Even without those header files i still get...

    Even without those header files i still get similar errors, i tried forward declarations, class AI; class Environment; etc, but when i go to 'new' the pointers in the NPC constructor i still get...
  16. Replies
    11
    Views
    1,663

    you mean like putting 'class AI;' 'class NPC; ...

    you mean like putting 'class AI;' 'class NPC; 'class Environment;' etc?

    where would i put them?
  17. Replies
    11
    Views
    1,663

    ok ill post the header files, because im still...

    ok ill post the header files, because im still quite new at c++ and i know im making mistakes...

    The Environment header:



    #ifndef H_ENVIRONMENT_H
    #define H_ENVIRONMENT_H

    #include...
  18. Replies
    11
    Views
    1,663

    Yeah i do include the corrent headers: ...

    Yeah i do include the corrent headers:



    #include <iostream>
    #include <list>
    #include "Point.h"
    #include "AI.h"
    #include "Environment.h"
  19. Replies
    11
    Views
    1,663

    Problems using list, OOP

    Hi, this is a very long post and im really sorry, but i dont know where else to turn :(

    I have a main program that has a list of objects (each one a class NPC),
    this is to represent a list of...
  20. Replies
    1
    Views
    994

    little trouble with getline

    hi,

    Cant seem to figure out why its returning NULL on getline everytime it iterates when the file (a .obj) does contain data on its lines.

    the reading function is:



    void...
  21. Trying to load RAW file textures please help (c and openGL)

    Hiya :)
    Im writing a program in C using openGL (GLUT) and im having a little trouble with the function to process textures (RAW files). It compiles ok but when i bind the texture in my display...
  22. Replies
    9
    Views
    2,634

    it works! no errors or warnings :D thanks so...

    it works! no errors or warnings :D
    thanks so much for your help.
  23. Replies
    9
    Views
    2,634

    thanks! you guys helped heaps its actually...

    thanks! you guys helped heaps its actually running now :)
    but not very well hehe i still got 3 warnings that i cant solve :(

    Warning, line 93 call to function 'celcius' with no prototype in...
  24. Replies
    9
    Views
    2,634

    thanks for responses :)

    Thantos when you said
    "In function fahrenheit() you are trying to assign type a value but it is not a variable in scope. Same with function celcius()."

    what do you actually mean by not a variable...
  25. Replies
    9
    Views
    2,634

    Need help with a temperature c prog, thanks

    Hi,

    Im trying to make a program that gathers a kelvin temp, changes it to either celcius/fahrenheight then determines the state of a sample of water (gas, solid, liquid)
    When I wrote this...
Results 1 to 25 of 28
Page 1 of 2 1 2