Huh. Learn something new every day. I knew a 0x prefix meant hexadecimal, but didn't realize octal was also implemented similarly.
Type: Posts; User: Ahlyis
Huh. Learn something new every day. I knew a 0x prefix meant hexadecimal, but didn't realize octal was also implemented similarly.
Can you give the exact error you are getting? Is it a compile, link or runtime error?
Why use goto statements instead of making the various routines into functions? As is, you may run into errors...
Well, I still don't know what is wrong with that code, but I found a workaround.
First, I tried changing the ifstream to a pointer, but that just caused an Access Violation to occur as soon as I...
MERGESIZE is currently defined as 3 for debug purposes. Once I get the test cases working, MERGESIZE will be set to 1000 and iOffset and iLevel will be passed in to the final function.
Okay, I'm back again.
Now I'm trying to improve the efficiency of my file merging by merging multiple files at once. But I've again hit a snag. I suspect it is the same issue that CornedBee...
Thanks.
I'll go away and stop bugging everyone now.
Again, thanks.
The program is now working, and the performance improvement is massive. I'm now looking at a different area to improve. Again related to files. This time, the issue is with the output files.
I...
I made MainData into a global variable instead of local to main() and now the program seems to be functioning correctly.
I'd still like to know what I was doing wrong before.
Okay, I tried again to convert the program to use the file once and leave it open until all the data is read. It crashed again.
Here's the modified main() and LoadData() functions.
int...
I want to thank everyone for taking the time to respond. Thank you.
For variables I want to use throughout the program, I prefer globals over passing them to every function and sub-function I...
I'm not using a memory checker, so I won't swear to it, but I am cleaning up all of the memory as far as I know.
I use calloc and the rest due to familiarity. I learned C++ in school, but that was...
Accessories.h (entire contents):
typedef struct board
{
char cBoard[50];
struct board *next;
}BOARD;
typedef BOARD * pBoard;
I was going to try to mask the code, but then I thought, why? It's not as if this is some top secret project. It's just a personal project and if someone really wants to steal my idea, not only would...
I need to read in lines from a simple text file 100,000 at a time in a file that contains millions of lines.
I tried opening the file, reading 100,000 lines, manipulating the info, saving the...