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...
Type: Posts; User: McFury
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...
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...
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...
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;
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 =...
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...
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...
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...
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...
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...
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...
please could someone give me some advice on this? :P
/beg
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...
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...
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...
you mean like putting 'class AI;' 'class NPC; 'class Environment;' etc?
where would i put them?
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...
Yeah i do include the corrent headers:
#include <iostream>
#include <list>
#include "Point.h"
#include "AI.h"
#include "Environment.h"
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...
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...
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...
it works! no errors or warnings :D
thanks so much for your help.
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...
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...
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...