Creating and maintaining a database.

The program should make use of functions, linked list, structures, arrays, pointers, and
data files (input and output files). It should be able to do the following:
Add record, delete record, update record, Sorting & Searching (on both string and
numbers), triggers, and alert messages among others…

Any program type :

but including the rules above. Come on my frds. rock on this challenge i know you can do it.


Edited by happygeek: spam snipped

Votes + Comments
do your own work, you parasite
interesting new way to say please do my homework for me
6 Years
Discussion Span
Last Post by techsurge
#include <stdlib.h>
#include <iostream>
#include <fstream>

using namespace std;

void open()
       char data1[50];
  ifstream myfile ("randOutput.txt");
  if (myfile.is_open())
    while (! myfile.eof() )
      myfile.getline (data1, 100);
      cout << data1 << endl;
    else cout << "Unable to open file"; 
void gen_rand()
   int  i, seed;
   cout << "\nPlease any integer to Generate Random Numbers: ";
   cin >> seed;     // Reads an integer.
   srand( seed);     
   cout << "\n\n            "
           "RANDOM NUMBERS\n\n";
   std::ofstream cout("randOutput.txt");
   for( i = 1 ; i <= 20 ; ++i)
      cout <<(rand() % 100+1) << endl;

int main()
    int num;
    cout<<" \n\tPress 1"" For Random Numbers option. \n"
          " \n\tPress 2"" To Show the generated Random Numbers. "
          "\n\n\tOption (1-2): ";
    cin>> num;
               gen_rand(); // Calling the gen_rand() function
                  cout << "\n\tERROR!  Please Select An Appropriate Options";
                  cout <<"\n\tERROR!  Please Select An Appropriate Options";
	return 0;

Edited by Ezzaral: Added code tags. Please use them to format all code that you post.


Why the unnecessary restrictions? Besides the linked list, you won't get around using all of these anyway and using a linked list should depend on whether a particular implementation you had in mind actually needs it.
Aside from that, it's not really that much of a challenge and especially not fun.
That's the kind of work one has to do every day anyway.


Its a basic step to maintain database not challenging work for any one who have little knowledge of this short off programming so you need read book.
First try your self then if you get any problem then feel free too definitely some kind enough here to help you.
Use code tag to post your code and mention point of your problem rather then simplly leaving your code. Hope you understand


it's a challenge for me to defeat a class ruler. he think he is the only god of C++. I wana kill his arrogancy

Votes + Comments
I imagine a lot of things are a challenge to you...

So you're basically asking us to write a piece of code, which you can then hand to your teacher to prove that you're a better coder than he is?

Lol. No.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.