Search:

Type: Posts; User: Explicit

Search: Search took 0.00 seconds.

  1. Replies
    5
    Views
    1,061

    Oh, duh! Thank you.

    Oh, duh! Thank you.
  2. Replies
    5
    Views
    1,061

    disk_file = fopen("a:\\may.inv", "rb"); ...

    disk_file = fopen("a:\\may.inv", "rb");
    if (!disk_file)
    {
    printf("No Database...
  3. Replies
    5
    Views
    1,061

    Floppy Storage

    I'm using the floppy drive to store some random access data...

    But when i try to run the program, and open in "rb" mode, and there is no file on the disk, I want the program to tell you to create...
  4. Replies
    3
    Views
    2,772

    Sweet, thanks so much. I always forget to put the...

    Sweet, thanks so much. I always forget to put the argument variable types in... And the [] for arrays...
  5. Replies
    3
    Views
    2,772

    Passing an Array of Structures

    struct inventory {
    char desc[25];
    int prodID;
    int prodAmt;
    float prodPrice;
    };

    struct transaction {
    char desc[25];
    int prodID;
  6. Replies
    3
    Views
    2,407

    Oh, this is up at the top aswell: FILE *...

    Oh, this is up at the top aswell:


    FILE * disk_file;

    Also, invDB is an array of a struct.
  7. Replies
    3
    Views
    2,407

    Working With Files

    The compiler gives me an error:


    void openInv(struct inventory invDB)
    {
    disk_file = fopen("a:\\may.inv", "rb+");
    if (!disk_file) {
    printf("Error: Disk\n");
    exit(1);...
  8. Replies
    7
    Views
    2,520

    Hmm this works aswell: void invSort(struct...

    Hmm this works aswell:


    void invSort(struct inv items[NUM])
    {
    int inner, outer;
    struct inv temp;
    int didSwap;

    for (outer = (NUM -1); outer >= 0; outer--) {
  9. Replies
    7
    Views
    2,520

    Umm, nope, it's this one......

    Umm, nope, it's this one...
    http://www.amazon.com/exec/obidos/tg/detail/-/0672305224/qid=1085682922/sr=1-1/ref=sr_1_1/104-1614243-7471922?v=glance&s=books

    I also have this one, but it's quite...
  10. Replies
    7
    Views
    2,520

    Gah, this book is upsetting me. That code is...

    Gah, this book is upsetting me. That code is almost exact, word for word from the book. I don't understand why it would be wrong!
  11. Replies
    7
    Views
    2,520

    Help With Bubble Sort

    Okay, I'm back again. From what I understand this bubble sort, should sort the entire struct in ascending order according to the price member... But it just prints out the struct in its original form...
  12. Replies
    4
    Views
    1,680

    Ummm, why would you want to do this? So you can...

    Ummm, why would you want to do this? So you can set other peoples passwords to nothing when you run the program from a floppy?
  13. Replies
    3
    Views
    2,046

    Cool. Thanks for the help! It's kindof odd...

    Cool. Thanks for the help!

    It's kindof odd though, that source isn't much different than the source from the book I'm learning from. I have char strings ints and floats in my struct, but they only...
  14. Replies
    3
    Views
    2,046

    Help With fseek();

    Hello, I'm having problems learning about rand access files...

    Most of my code works, all until you get to the fseek. The output is all garbaled, I'm not sure why.

    I'll post the entire code, so...
  15. Replies
    10
    Views
    2,711

    Actually, your password entry code is more like...

    Actually, your password entry code is more like what I'm looking for than mine is! In mine, if you press backspace it takes it as a char, heh.

    Your code works for me :)
  16. Replies
    10
    Views
    2,711

    I don't want input without pressing enter - I...

    I don't want input without pressing enter - I want everything exactly like how scanf works, but printing * when you type, instead of echoing the char you typed!
  17. Replies
    10
    Views
    2,711

    That is C++, I havn't even learned all of C yet...

    That is C++, I havn't even learned all of C yet...
  18. Replies
    10
    Views
    2,711

    Like say your entering a password to get into...

    Like say your entering a password to get into this forum, sometimes you might know that you pressed a wrong button, and backspace... With the code above, backspace just shows up as a *...
  19. Replies
    10
    Views
    2,711

    Password Field

    I would like to have a password field similar to scanf but without echoing what you typed in... So you can press backspace and redo a character if you know you messed up:

    The best I have so far is...
Results 1 to 19 of 19