Search:

Type: Posts; User: neolyn

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    1,436

    I see that. But why isn't inf.eof() detecting...

    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,...
  2. Replies
    5
    Views
    1,436

    char ffirst[15]; char flast[20]; char...

    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...
  3. Replies
    5
    Views
    1,436

    Trouble reading from file

    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...
  4. Thanks for your help. I appreciate it.

    Thanks for your help. I appreciate it.
  5. Yeah - I tried that - not working. lol ...

    Yeah - I tried that - not working. lol



    while(1) {

    inf.getline(ffirst, 15, '|');
    inf.getline(flast, 20, '|');
    inf.getline(fcity, 25, '|');
    ...
  6. i was able to get it working once I stopped using...

    i was able to get it working once I stopped using pointers. So, I am still ahveing trouble iwth the eof()q
  7. Could you please explain the "get function"?

    Could you please explain the "get function"?
  8. Problem reading a delimited file into a binary tree

    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...
  9. Replies
    10
    Views
    1,611

    Try this: //sp //11/30/04 #include...

    Try this:




    //sp
    //11/30/04

    #include <iostream>
  10. Replies
    2
    Views
    3,635

    Source code for B-Tree in main memory

    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...
  11. Replies
    6
    Views
    1,599

    C++ Data Structures Reference

    Anyone have a few suggestions on good data structures textbooks?
  12. C++ Overloading < > == for use with char * or string

    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...
  13. Replies
    8
    Views
    3,292

    Thank you - that's exactly what I was looking...

    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...
  14. Replies
    8
    Views
    3,292

    Well, that's nice - but the...

    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...
  15. Replies
    8
    Views
    3,292

    Well, I'm really sort of lost - I have never...

    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...
  16. Replies
    8
    Views
    3,292

    B-Tree index of delimited file

    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...
Results 1 to 16 of 16