Search:

Type: Posts; User: amdeffen

Search: Search took 0.01 seconds.

  1. Replies
    21
    Views
    8,083

    I don't know if this will help any, but what is...

    I don't know if this will help any, but what is being returned is the last member of the data file, no matter what I put in for search criteria.
  2. Replies
    21
    Views
    8,083

    Ok, I changed the main function so the for loop...

    Ok, I changed the main function so the for loop closes before the user can search. However, I'm still having the exact same problem. I think the problem is my search function, but I'm completely...
  3. Replies
    21
    Views
    8,083

    Ok, that didn't actually help much. It did the...

    Ok, that didn't actually help much. It did the same thing, except this time, it printed out a long line of zeros afterwards. :confused: :confused:
  4. Replies
    21
    Views
    8,083

    Ok, I combined all the functions into one, and...

    Ok, I combined all the functions into one, and it's working pretty well...


    #include <iostream>
    #include <fstream>
    using namespace std;
    struct car{
    string make;
    string model;...
  5. Replies
    21
    Views
    8,083

    Actually, if "ANY" is criteria, shouldn't the...

    Actually, if "ANY" is criteria, shouldn't the program just disregard those criteria, and then just search the rest of them? Also, I don't really want to output the data for a car every time there's...
  6. Replies
    21
    Views
    8,083

    Ok, here is the way my code looks now ...

    Ok, here is the way my code looks now


    #include <iostream>
    #include <fstream>
    using namespace std;
    struct car{
    string make;
    string model;
    int year;
  7. Replies
    21
    Views
    8,083

    :p I just figured that out. I feel a bit silly...

    :p I just figured that out. I feel a bit silly now.
  8. Replies
    21
    Views
    8,083

    Ok, so I need to make val type 'car' correct? ...

    Ok, so I need to make val type 'car' correct? I've tried doing that, and I still get the same error message.
  9. Replies
    21
    Views
    8,083

    No one have any ideas? I'm really stuck here and...

    No one have any ideas? I'm really stuck here and it's due tomorrow. :(
  10. Replies
    4
    Views
    2,082

    Maybe you shouldn't declare state as a pointer,...

    Maybe you shouldn't declare state as a pointer, since the input is coming directly from the user. Though I might be wrong, my experience with enum is pretty green.
  11. Replies
    2
    Views
    3,761

    I don't know if this will help much, but I don't...

    I don't know if this will help much, but I don't think you need to have the .h in #include <fstream.h>. I think that #include <fstream> works just as well.
  12. Replies
    21
    Views
    8,083

    Ok, here's my code as of now, along with the...

    Ok, here's my code as of now, along with the error messages I'm getting.


    #include <iostream>
    #include <fstream>
    using namespace std;
    struct car{
    char make[50];
    char...
  13. Replies
    21
    Views
    8,083

    Thanks. Can't believe I missed that. Just...

    Thanks. Can't believe I missed that. Just wondering, does anyone see anything that could go wrong in the future? Because I still have to write a couple search functions, and I'm worried that my...
  14. Replies
    21
    Views
    8,083

    Ok, here is my code: #include ...

    Ok, here is my code:


    #include <iostream>
    #include <fstream>
    using namespace std;
    struct car{
    char make[50];
    char model[50];
    int year;
  15. Replies
    3
    Views
    955

    Unless it is a pre-defined C++ function, no you...

    Unless it is a pre-defined C++ function, no you cannot.
  16. Replies
    21
    Views
    8,083

    Dynamic memory allocation

    Hello all. I am working on a project for a college level C++ course, and have run into a big snag. Here is the text of the assignment:

    1. For this assignment, you will be creating a car search...
Results 1 to 16 of 16