Constructing a Database

Hello, I have always had a dream in which a database is constructed on a Win32 (I believe CMD is), while I have gave this many many chances, I can not succeed in this.. I understand the basic elements such as I need the string.h and fstream... Anything would be greatly appreciated

Example
Welcome to Database:
> Please input command
> name
> (displays name)
>
> load "file name"
> (Opens new file)



Thank you,
Your post doesn't make sense, what exactly do you want? Writing a database? There are thousands of free databases you can take a look at to get inspiration. Writing a database is not a small project.


google is your friend
From what I am reading...you want a program that basically is a parser for your own language? That's not really a database.
I think that you have to read the command and associate it with a function
eg:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
string input, command;
stringstream inputs;
while (true)
{
    cout << "\n> ";
    getline(cin,input);
    inputs.str(input);
    inputs >> command;
    if (command == "exit")
        break;
    else if (command == "name")
        cout << name;
    else if (command == "open")
        //...
}
Topic archived. No new replies allowed.