Search:

Type: Posts; User: JKI

Search: Search took 0.01 seconds.

  1. Replies
    12
    Views
    2,378

    I appreciate everyone having taken the time......

    I appreciate everyone having taken the time... it's baffling me still.

    (NOT Too mention FRUSTRATING me still! LOL.)

    If you "run" the program, and that DAT (test file) doesn't work for you......
  2. Replies
    12
    Views
    2,378

    I already implemented what you have suggested....

    I already implemented what you have suggested. (Each function shows--outputs--what was passed to it, and the arrays are displayed after being sorted.)

    The information contained in them are 100%...
  3. Replies
    12
    Views
    2,378

    No, it is not until EOF. The indexing array is...

    No, it is not until EOF. The indexing array is sorted, searched, and then I print all records (>=) the specified target, if found. (using seekg and the record # * record size--it's a "fixed length"...
  4. Replies
    12
    Views
    2,378

    Sorry... it wouldn't let me upload a DAT file. ...

    Sorry... it wouldn't let me upload a DAT file.

    Here it is, renamed TXT.

    (It needs to be named "inventory.dat" for the program to run.)

    I hope this works... Windows was not happy renaming...
  5. Replies
    12
    Views
    2,378

    Okay... I warn you, the code is verbose and not...

    Okay... I warn you, the code is verbose and not pretty. LOL.

    Also, the test file must be present (inventory.dat).


    You can search by Inventory Number: 000, 111, 222, etc.

    Or, by Inventory...
  6. Replies
    12
    Views
    2,378

    Not the normal looping question...

    I have a situation, I'm hoping someone has seen before...

    My program runs fine. (That's a first!--LOL)

    The program is essentially a class to handle an inventory file. It has a menu with four...
  7. Replies
    2
    Views
    1,133

    Okay. Was worth a shot. Easy enough to work...

    Okay. Was worth a shot.

    Easy enough to work around.

    Thanks:: Jazz
  8. Replies
    2
    Views
    1,133

    Limiting Console Output

    Quick (and probably stupid) question:

    My program retrieves records from a binary file.

    I want the ouput of my records search to stop when the screen is full (or, say 20 records worth of data);...
  9. Replies
    4
    Views
    1,306

    I appreciate all the replies. I was hoping to...

    I appreciate all the replies.

    I was hoping to avoid it, but I guess the safest bet at this point would be to slave the old drive. I must have blipped something during the uninstalls.

    Thanks...
  10. Replies
    4
    Views
    1,306

    Here's an odd one...

    Decided to blow the dust off an old computer I have and hook it into my home network.

    It currently has Windows 98 on it. (problem #1--LOL)

    Anyhow, I got it talking to the network, updated...
  11. Replies
    5
    Views
    1,397

    Right... poor choice of words on my part. ...

    Right... poor choice of words on my part. Should've said the compiler.
  12. Replies
    5
    Views
    1,397

    strcmp() did the trick. (Of course after I...

    strcmp() did the trick.

    (Of course after I compiled and ran it... I found some "other stuff" Linux wasn't too happy with; but that was all my doing... LOL. It never ends! )

    Thanks:: Jazz
  13. Replies
    5
    Views
    1,397

    Meaning under Linux? I'll give it a shot. ...

    Meaning under Linux?

    I'll give it a shot. Just struck me as odd that the program worked fine on my machine and then Linux stuck it's tongue out at me. The main differences I've encountered so...
  14. Replies
    5
    Views
    1,397

    Crisis du jour: (Linux) Array Error

    (Sigh....)

    I finished a program which runs fine on my XP box (Dev C++), but when I compile it under Linux (G++), I get:


    In constructor 'Inventory::Inventory()'
    ISO C++ forbids assignment of...
  15. Replies
    3
    Views
    4,301

    Benny, You were entirely correct. Changed...

    Benny,

    You were entirely correct.

    Changed it to:



    if (strcmp(keyptr[j].invnbr, keyptr[j + 1].invnbr) > 0)
  16. Replies
    3
    Views
    4,301

    Thanks! Hope you're right, it was making me nuts...

    Thanks! Hope you're right, it was making me nuts wondering why one structure couldn't hold the other.

    I'll give it shot and let you know if I got it.

    Thanks again, sometimes another set of...
  17. Replies
    3
    Views
    4,301

    Array/Structure Bubble Sort

    I have an array of structures which I am attempting to bubble sort.

    My problem is I cannot get a "temp" struct to hold one of the structures within the array for the sort.

    My data is valid...
  18. Replies
    2
    Views
    1,204

    Appreciate the quick reply! I actually tried...

    Appreciate the quick reply!

    I actually tried both. (Using dynamic arrays within the class, and getline to "parse" in the function call; and isdigit() for the error checking.)

    My syntax is...
  19. Replies
    2
    Views
    1,204

    Array boundary and error checking

    Having a couple fairly simple problems (but I'm lost nonetheless):

    I have a class consisting of something like this:

    class myclass

    char a[60];
    char b[60];
    int c;
    ...
Results 1 to 19 of 19