I see that. But why isn't inf.eof() detecting that I'm at the end of the file? I looked at the tutorial, and it didnt' have anything on eof(). I've been looking around on the net for something,...
Type: Posts; User: neolyn
I see that. But why isn't inf.eof() detecting that I'm at the end of the file? I looked at the tutorial, and it didnt' have anything on eof(). I've been looking around on the net for something,...
char ffirst[15];
char flast[20];
char fcity[25];
char fstate[2];
char fzip[10];
I'm really just unsure as to why this isn't working. It should just terminate the loop at the...
I need to read this delimited file into a program using a loop. Each iteration of the loop. the data will be inserted into a tree data structure, but the way I have the loop written, it runs...
Thanks for your help. I appreciate it.
Yeah - I tried that - not working. lol
while(1) {
inf.getline(ffirst, 15, '|');
inf.getline(flast, 20, '|');
inf.getline(fcity, 25, '|');
...
i was able to get it working once I stopped using pointers. So, I am still ahveing trouble iwth the eof()q
Could you please explain the "get function"?
I'm trying to read in a delimited file to my program and insert the contents into a binary tree. Here's what I've got:
char *ffirst;
char *flast;
char *fcity;
char...
Try this:
//sp
//11/30/04
#include <iostream>
I'm trying to implement a B-Tree in memory (not on secondary storage) and I'm having a lot of trouble with it.
Does anyone know where I might find some sample source code or at least pseudo code...
Anyone have a few suggestions on good data structures textbooks?
I am trying to figure out how to overload <, >, and == to use with char * or string datatypes.
I am trying to take set of data and put into a data structure by value of the string, so I need a way...
Thank you - that's exactly what I was looking for.
My professor gave ONE example of this in class and never showed us any code. So, the day after, he assigns a project on it - over Thanksgiving...
Well, that's nice - but the http://faq.cprogramming.com/cgi-bin...6&id=1073086407 link doesn't even mention B-Trees. And the second link http://cis.stvincent.edu/carlsond/s...tree/btree.html is a...
Well, I'm really sort of lost - I have never coded a B-Tree before, and I am having a lot of trouble finding any references.
I'm not really sure how to declare my nodes, the insert procedure, and...
Anyone have any ideas on creating a B-Tree index of a delimited text file in memory? I'm trying to code this in C++ (no C functions - OO only).
Example:
void create(char datafile[], int...