![]() |
|
#1
|
|||
|
|||
runtime error R6002anyone know why i would get a runtime error R6002
- floating point not loaded in what seems like a fine program it occurs at the point where the program attempts to read a file |
|||
|
#2
|
||||
|
||||
Re: runtime error R6002Hi Mick,
Please post the simplified code you have, so that we may take a look at it and tell you what is the error. Here is an extract from MSDN about the error R6002: Quote:
Regards, Paramesh. __________________
Don't walk in front of me, I may not follow. Don't walk behind me, I may not lead. Just walk beside me and be my friend. |
|
#3
|
|||
|
|||
Re: runtime error R6002cheers paramesh, i got it sorted
|
|
#4
|
|||
|
|||
Re: runtime error R6002i had a double inside a struct that wasnt being seen by the compiler so i just created a 'dummy' double outside the structure to force the compiler to bring in the rest of sscanf, is this the best way to do this?
it got rid of the error msg anyway but now the program simply skips to the 'end of file found msg' without displaying the values contained in the .dat file. very strange |
|
#5
|
||||
|
||||
Re: runtime error R6002Quote:
Could you share your code with us, so that we can think about your question ? Kobi. __________________
It's actually a one time thing (it just happens alot). |
|
#6
|
||||
|
||||
Re: runtime error R6002Hi Mick,
I have a question: Did you print the variables? After considering your previous thread, here is an example: CPP / C++ / C Code:
and according to your lecturer's code, it end of file found is printed, it indicates that we have got the values from the file and stored it in the variables node_array[i]. Regards, Paramesh. __________________
Don't walk in front of me, I may not follow. Don't walk behind me, I may not lead. Just walk beside me and be my friend. |
|
#7
|
|||
|
|||
Re: runtime error R6002Got it working again, i'd deleted a line of program when i started to get the runtime error to see if it was causing the problem, just had to put it back in. ive added a lot to the program, to make it a bit more user friendly and then made it able to write the data to a file aswell. its all working fine now and im currently just looking at converting it to use linked lists so ill let you know how that goes.
heres the program anyway, thanks for all the help paramesh, couldn't have done it without u. |
|
#8
|
|||
|
|||
Re: runtime error R6002CPP / C++ / C Code:
|
|
#9
|
||||
|
||||
Re: runtime error R6002Good job Mick.
But you can still improve your program by replacing "fprintf(stdout" by printf and "fscanf(stdin" by "scanf" statements. ![]() Paramesh. __________________
Don't walk in front of me, I may not follow. Don't walk behind me, I may not lead. Just walk beside me and be my friend. |
|
#10
|
||||
|
||||
Re: runtime error R6002Quote:
And I repeat: READ THIS and THIS __________________
During the election they said Obama could only be elected when pigs fly. Well, we currently have an epidemic of Swine Flu. Coincidence? |
Recent GIDBlog
Once again, no time for hobbies by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| runtime, compile time... | kai85 | C Programming Language | 2 | 19-May-2005 23:05 |
| Cannot find a runtime error on a fltk app running on windows | Frangar | FLTK Forum | 2 | 12-May-2005 12:38 |
| how to increase the font size at runtime | banur22 | MS Visual C++ / MFC Forum | 1 | 21-Apr-2005 07:37 |
| Free copy of Runtime Revolution | crystalattice | Open Discussion Forum | 0 | 29-Dec-2004 16:52 |
| Problem with php/mysql script during runtime | norok | MySQL / PHP Forum | 3 | 25-Jun-2003 06:35 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The