Thread: Help making a program

  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
    Registered User
    Join Date
    Dec 2007
    Posts
    2,675
    Code:
    #include <iostream>
    using namespace std;
    
    int main(void)
    {
        cout << "Hello world" << endl;
        return 0;
    }

  3. #3
    Registered User
    Join Date
    Oct 2006
    Posts
    3,445
    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
    28,412
    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?
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    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をこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    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
    3,445
    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-10-2010, 12:14 AM
  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