Help making a program

This is a discussion on Help making a program within the C++ Programming forums, part of the General Programming Boards category; Hi, I'm a newbie. I need a program that store differents characteristics of a 'most wanted criminals' (name, criminal profile ...

  1. #1
    Registered User
    Join Date
    Aug 2010
    Posts
    4

    Help making a program

    Hi, I'm a newbie.
    I need a program that store differents characteristics of a 'most wanted criminals' (name, criminal profile (type of crimes), photo, etc), store them on a binary file and then perform searches based upon different parameters. The program should save on disk the data of some criminals and show the result on three type of searches.

    Where can I start?

  2. #2
    a_capitalist_story
    Join Date
    Dec 2007
    Posts
    2,650
    Code:
    #include <iostream>
    using namespace std;
    
    int main(void)
    {
        cout << "Hello world" << endl;
        return 0;
    }

  3. #3
    Registered User
    Join Date
    Oct 2006
    Posts
    2,370
    Are you proficient in any programming language(s) such as C or C++? If not, first thing is to get a good C++ book (Accelerated C++ comes highly recommended by members of this board). Then download free tools from microsoft, or some other provider of C++ development tools, depending on what OS you're using. Once you've made it all the way through the book at least once, and feel like you have a good understanding of C++, you can do a google search for embedded databases. Microsoft has one that comes with its development tools, and there are a few others that are free and very good for the task you describe.

  4. #4
    Registered User
    Join Date
    Aug 2010
    Posts
    4
    I started doing a Master in Science in Computer.
    The teacher asked to not use Visual Studio because it generates additional files.
    In the past I've programmed fairly briefly in Java, I used also Visual Basic, and years ago I programmed some in C++ but I'm not fairly confident in programming without looking for help.

    In need this program to be handed in 2 weeks' time, I'm reading, having trouble using the iostream and fstream libraries in both Code:Blocks and DevC++, it says:
    iostream: No such file or directory

    Not sure what I'm doing wrong.

  5. #5
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,660
    Well, all IDEs will generate "additional files", because those are needed for the value added aspect of these IDEs (i.e., things like build scripts are managed for you).

    Are you saying that you got this error message with rags_to_riches' example?
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  6. #6
    Registered User
    Join Date
    Jul 2010
    Location
    Oklahoma
    Posts
    107
    XtC10,

    I like cygwin and a nice text editor, I mean, when I don't have a Linux box handy of course. You'll need to make sure that the development libraries are installed too, but that's how admins end up getting started.... There aren't many additional files generated by those utilities.

    DevC++ has never produced such an error for me, what settings did you use when you created the project which, upon compilation, produced those errors? The compiler should be able to locate those inclusions from it's default directories as implied by the '<' and '>'....

    Best Regards,

    New Ink -- Henry

  7. #7
    Registered User
    Join Date
    Aug 2010
    Posts
    4
    I was using Code::Blocks and it didnt worked neither, but I read somewhere you need to save the project as a .cc file instead of a .c, so that did the trick.
    Anyways I dont like C++, I like Java better, I picked computer science but I don't know If i like it, i hate programming and never had been good at it (Except maybe Visual Basic), this Data Structures programming makes me sick, I might change to IT. I though it was the same stuff.

  8. #8
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,554
    If that's the case, then,
    • If you're going to use C++, use a .cpp extension. Otherwise you should have posted in the appropriate board.
    • You're probably going to have a hard time doing this if you hate programming.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  9. #9
    Registered User
    Join Date
    Oct 2006
    Posts
    2,370
    Quote Originally Posted by Elysia View Post
    If that's the case, then,
    • If you're going to use C++, use a .cpp extension. Otherwise you should have posted in the appropriate board.
    • You're probably going to have a hard time doing this if you hate programming.
    Once again, elysia is spot on. CS is really about software engineering and development. if you don't like programming, then CS is probably not the right major for you.

  10. #10
    Registered User
    Join Date
    Aug 2010
    Posts
    4
    Yes, indeed guys.
    I've always been 'good' with computers, repairing, formatting, using software etc, but I have never liked programming.
    I'm thinking on switching to IT.

    Thank you guys.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. [C++] Need Help Making Menu Program
    By Bartvo in forum C++ Programming
    Replies: 2
    Last Post: 03-09-2010, 11:14 PM
  2. tips on making my program faster?
    By jackhasf in forum C Programming
    Replies: 4
    Last Post: 10-25-2009, 06:32 AM
  3. Making a program run on startup
    By Poincare in forum C Programming
    Replies: 10
    Last Post: 06-21-2009, 12:50 PM
  4. Using variables in system()
    By Afro in forum C Programming
    Replies: 8
    Last Post: 07-03-2007, 12:27 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21