// API callback
related_results_labels_thumbs({"version":"1.0","encoding":"UTF-8","feed":{"xmlns":"http://www.w3.org/2005/Atom","xmlns$openSearch":"http://a9.com/-/spec/opensearchrss/1.0/","xmlns$blogger":"http://schemas.google.com/blogger/2008","xmlns$georss":"http://www.georss.org/georss","xmlns$gd":"http://schemas.google.com/g/2005","xmlns$thr":"http://purl.org/syndication/thread/1.0","id":{"$t":"tag:blogger.com,1999:blog-5735018943946871385"},"updated":{"$t":"2023-12-09T13:35:10.032-08:00"},"category":[{"term":"cpp"},{"term":"c++"},{"term":"hackerrank"},{"term":"c++ program"},{"term":"Linked Lists in C++"},{"term":"c"},{"term":"c programming"},{"term":"programming"},{"term":"PATTERNS"},{"term":"coding"},{"term":"C++ Diamond Pattern"},{"term":"Hackerrank Delete duplicate-value nodes from a sorted linked list Solution"},{"term":"Hackerrank Insert a node into a sorted doubly linked list Solution"},{"term":"Hackerrank Print in Reverse solution"},{"term":"Hackerrank Print the elements of a linked list solution"},{"term":"Hackerrank Reverse a doubly linked list solution"},{"term":"TEXT ANALYZER"},{"term":"Utopian tree"},{"term":"education"},{"term":"hourglass pattern c++"},{"term":"java"},{"term":"java program"},{"term":"lexical analyser"},{"term":"mini project"},{"term":"networks"},{"term":"operator precedence"},{"term":"opps sandclock pattern"},{"term":"opps triangle pattern"},{"term":"pattern generation in c"},{"term":"triangle pattern c++"},{"term":"unipolar encoding simulation"}],"title":{"type":"text","$t":"GRK"},"subtitle":{"type":"html","$t":"A blog by Gokul Raj Kumar"},"link":[{"rel":"http://schemas.google.com/g/2005#feed","type":"application/atom+xml","href":"https:\/\/blog.grkweb.com\/feeds\/posts\/default"},{"rel":"self","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/5735018943946871385\/posts\/default\/-\/education?alt=json-in-script\u0026max-results=6"},{"rel":"alternate","type":"text/html","href":"https:\/\/blog.grkweb.com\/search\/label\/education"},{"rel":"hub","href":"http://pubsubhubbub.appspot.com/"}],"author":[{"name":{"$t":"GRK"},"uri":{"$t":"http:\/\/www.blogger.com\/profile\/00099219911209322075"},"email":{"$t":"noreply@blogger.com"},"gd$image":{"rel":"http://schemas.google.com/g/2005#thumbnail","width":"16","height":"16","src":"https:\/\/img1.blogblog.com\/img\/b16-rounded.gif"}}],"generator":{"version":"7.00","uri":"http://www.blogger.com","$t":"Blogger"},"openSearch$totalResults":{"$t":"1"},"openSearch$startIndex":{"$t":"1"},"openSearch$itemsPerPage":{"$t":"6"},"entry":[{"id":{"$t":"tag:blogger.com,1999:blog-5735018943946871385.post-4803654322920561843"},"published":{"$t":"2014-03-23T11:03:00.000-07:00"},"updated":{"$t":"2014-05-29T10:13:36.057-07:00"},"category":[{"scheme":"http://www.blogger.com/atom/ns#","term":"coding"},{"scheme":"http://www.blogger.com/atom/ns#","term":"cpp"},{"scheme":"http://www.blogger.com/atom/ns#","term":"education"},{"scheme":"http://www.blogger.com/atom/ns#","term":"mini project"},{"scheme":"http://www.blogger.com/atom/ns#","term":"programming"}],"title":{"type":"text","$t":"Library Management System  ( CPP coding ) :"},"content":{"type":"html","$t":"\u003Cdiv dir=\"ltr\" style=\"text-align: left;\" trbidi=\"on\"\u003E\n\u003Cbr \/\u003E\n\u003Cdiv dir=\"ltr\" style=\"text-align: left;\" trbidi=\"on\"\u003E\n\u003Cdiv dir=\"ltr\" style=\"text-align: left;\" trbidi=\"on\"\u003E\n\u003Cdiv style=\"height: 0px; text-align: justify;\"\u003E\nLibrary Management System has been implemented as a C++ program. Complete program code is given below. Complete project is available on user request. User comments are welcome to notify any Bugs or to improve the further posts. :)\u003Cbr \/\u003E\n\u003Cbr \/\u003E\u003C\/div\u003E\n\u003Cdiv style=\"text-align: justify;\"\u003E\n\u003Cbr \/\u003E\u003C\/div\u003E\n\u003Ch2 style=\"text-align: justify;\"\u003E\n\u003C\/h2\u003E\n\u003Ch2 style=\"text-align: justify;\"\u003E\n\u003C\/h2\u003E\n\u003Ch2 style=\"text-align: justify;\"\u003E\nConcepts used:\u003C\/h2\u003E\n\u003Cdiv style=\"text-align: justify;\"\u003E\nMultilevel inheritance is used in this program. The files concepts were also used to store and retrieve the required data's for the login details, membership details and book details.\u003C\/div\u003E\n\u003Ch2 style=\"text-align: justify;\"\u003E\nModules : \u0026nbsp;\u003C\/h2\u003E\n\u003Cdiv style=\"text-align: justify;\"\u003E\n1. Login maintenance\u0026nbsp;\u003C\/div\u003E\n\u003Cdiv\u003E\n\u003Cdiv style=\"text-align: justify;\"\u003E\n2. Library maintenance\u0026nbsp;\u003C\/div\u003E\n\u003Cdiv style=\"text-align: justify;\"\u003E\n3. Book issue maintenance\u0026nbsp;\u003C\/div\u003E\n\u003Cdiv style=\"text-align: justify;\"\u003E\n4. Book return maintenance\u0026nbsp;\u003C\/div\u003E\n\u003C\/div\u003E\n\u003Cdiv style=\"text-align: justify;\"\u003E\n\u003Cbr \/\u003E\u003C\/div\u003E\n\u003Cdiv\u003E\n\u003Ch2 style=\"text-align: justify;\"\u003E\nLOGIN MAINTENANCE\u003C\/h2\u003E\n\u003Cdiv style=\"text-align: justify;\"\u003E\n Separate login for administrator, member and guest should be provided.\u003C\/div\u003E\n\u003Cdiv style=\"text-align: justify;\"\u003E\n Should accept user name and password from the user.\u003C\/div\u003E\n\u003Cdiv style=\"text-align: justify;\"\u003E\n Should compare the user name and password (case sensitive).\u003C\/div\u003E\n\u003Cdiv style=\"text-align: justify;\"\u003E\n If the user name and password matches then the menu for the respective login\u003C\/div\u003E\n\u003Cdiv style=\"text-align: justify;\"\u003E\nshould be displayed.\u003C\/div\u003E\n\u003Cdiv style=\"text-align: justify;\"\u003E\n If the user name or password is incorrect it should display an error message.\u003C\/div\u003E\n\u003Cdiv style=\"text-align: justify;\"\u003E\n If the user name or password is wrong return to previous menu.\u003C\/div\u003E\n\u003Ch2 style=\"text-align: justify;\"\u003E\nLIBRARY MAINTENANCE\u003C\/h2\u003E\n\u003Cdiv style=\"text-align: justify;\"\u003E\nThis module has the following functions\u003C\/div\u003E\n\u003Ch3 style=\"text-align: justify;\"\u003E\n Add member\u003C\/h3\u003E\n\u003Cdiv style=\"text-align: justify;\"\u003E\n Every member should be allocated with a unique ID.\u003C\/div\u003E\n\u003Cdiv style=\"text-align: justify;\"\u003E\n The member ID should be generated by the system.\u003C\/div\u003E\n\u003Cdiv style=\"text-align: justify;\"\u003E\n Each member should be filled with their details such as name address etc.\u003C\/div\u003E\n\u003Cdiv style=\"text-align: justify;\"\u003E\n After adding a new member, it should return to the main menu.\u003C\/div\u003E\n\u003Ch3 style=\"text-align: justify;\"\u003E\n View\/Delete a member\u003C\/h3\u003E\n\u003Cdiv style=\"text-align: justify;\"\u003E\n If the member ID is entered the details of the member should be\u003C\/div\u003E\n\u003Cdiv style=\"text-align: justify;\"\u003E\ndisplayed.\u003C\/div\u003E\n\u003Cdiv style=\"text-align: justify;\"\u003E\n If the member should be removed from the list, use delete option to\u003C\/div\u003E\n\u003Cdiv style=\"text-align: justify;\"\u003E\nremove the member from the list.\u003C\/div\u003E\n\u003Ch3 style=\"text-align: justify;\"\u003E\n Add books\u003C\/h3\u003E\n\u003Cdiv style=\"text-align: justify;\"\u003E\n Should add new books to the library.\u003C\/div\u003E\n\u003Cdiv style=\"text-align: justify;\"\u003E\n Read book details such as book name, author etc.\u003C\/div\u003E\n\u003Cdiv style=\"text-align: justify;\"\u003E\n Store the details of the book.\u003C\/div\u003E\n\u003Ch3 style=\"text-align: justify;\"\u003E\n View book details\u003C\/h3\u003E\n\u003Cdiv style=\"text-align: justify;\"\u003E\n Read the book title to search the book.\u003C\/div\u003E\n\u003Cdiv style=\"text-align: justify;\"\u003E\n If the book is found display the details of the book.\u003C\/div\u003E\n\u003Ch3 style=\"text-align: justify;\"\u003E\n View all books\u003C\/h3\u003E\n\u003Cdiv style=\"text-align: justify;\"\u003E\n If this module is executed list all the available books in the library.\u003C\/div\u003E\n\u003C\/div\u003E\n\u003Cdiv style=\"text-align: justify;\"\u003E\n\u003Cbr \/\u003E\u003C\/div\u003E\n\u003Cdiv style=\"text-align: justify;\"\u003E\n\u003Ch2\u003E\nBOOK ISSUE MAINTENANCE\u003C\/h2\u003E\n\u003Cdiv\u003E\n Only members can take the books from library.\u003C\/div\u003E\n\u003Cdiv\u003E\n Search the book and click to view the book details.\u003C\/div\u003E\n\u003Cdiv\u003E\n If the member wants that book and if that book is available lend that book.\u003C\/div\u003E\n\u003Cdiv\u003E\n Store the member details and book details along with the issue date in issue.txt\u003C\/div\u003E\n\u003Cdiv\u003E\nfile.\u003C\/div\u003E\n\u003Cdiv\u003E\n Update the book detail as not available.\u003C\/div\u003E\n\u003Ch2\u003E\nBOOK RETURN MAINTENANCE\u003C\/h2\u003E\n\u003Cdiv\u003E\n User should be logged in as a member.\u003C\/div\u003E\n\u003Cdiv\u003E\n To return a book enter the book number.\u003C\/div\u003E\n\u003Cdiv\u003E\n Display the issue date.\u003C\/div\u003E\n\u003Cdiv\u003E\n Calculate the number of days from issue to return.\u003C\/div\u003E\n\u003Cdiv\u003E\n If the number of days is more than 15 charge RS.1 for each day.\u003C\/div\u003E\n\u003Cdiv\u003E\n Calculate the total fine amount.\u003C\/div\u003E\n\u003Cdiv\u003E\n Update the book status as available.\u003C\/div\u003E\n\u003Cdiv\u003E\n\u003Cbr \/\u003E\u003C\/div\u003E\n\u003Cdiv\u003E\n\u003C\/div\u003E\n\u003Ch2\u003E\nSource Code :\u003C\/h2\u003E\n\u003Ch2\u003E\n\u003Cpre style=\"background-color: #f0f0f0; border: 1px dashed rgb(204, 204, 204); font-family: arial; font-size: 12px; font-weight: normal; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 646.46875px;\"\u003E\u003Ccode style=\"word-wrap: normal;\"\u003E #include\u0026lt;iostream.h\u0026gt;  \n #include\u0026lt;iomanip.h\u0026gt;  \n #include\u0026lt;string.h\u0026gt;  \n #include\u0026lt;conio.h\u0026gt;  \n #include\u0026lt;fstream.h\u0026gt;  \n int line=0,entry=0,mem=1,log=0,no,id;  \n class library  \n {  \n      public:  \n           void header();  \n           void footer();  \n }obj;  \n class books: public library  \n {  \n      protected:  \n           char name[20],author[20];  \n      public:  \n           int code,stat;  \n           void update(ofstream \u0026amp;fout)  \n           {  \n                fout\u0026lt;\u0026lt;code\u0026lt;\u0026lt;' '\u0026lt;\u0026lt;name\u0026lt;\u0026lt;' '\u0026lt;\u0026lt;author\u0026lt;\u0026lt;' '\u0026lt;\u0026lt;stat\u0026lt;\u0026lt;endl;  \n           }  \n           friend void book_display();  \n }bks[10];  \n class users : public books  \n {  \n      protected:  \n           char name[20];  \n           int rollno,member_id;  \n      public:  \n           int take,tcode;  \n           void welcome()  \n           {  \n                cout\u0026lt;\u0026lt;setw(40)\u0026lt;\u0026lt;\"WELCOME \"\u0026lt;\u0026lt;name;  \n           }  \n           void read(ifstream \u0026amp;fin)  \n           {  \n                fin\u0026gt;\u0026gt;member_id\u0026gt;\u0026gt;rollno\u0026gt;\u0026gt;name\u0026gt;\u0026gt;take\u0026gt;\u0026gt;tcode\u0026gt;\u0026gt;mem;  \n           }  \n           void update(ofstream \u0026amp;fout)  \n           {  \n           fout\u0026lt;\u0026lt;member_id\u0026lt;\u0026lt;' '\u0026lt;\u0026lt;rollno\u0026lt;\u0026lt;' '\u0026lt;\u0026lt;name\u0026lt;\u0026lt;' '\u0026lt;\u0026lt;take\u0026lt;\u0026lt;' '\u0026lt;\u0026lt;tcode\u0026lt;\u0026lt;' '\u0026lt;\u0026lt;mem\u0026lt;\u0026lt;endl;  \n           }  \n           void login()  \n           {  \n                if(no==rollno\u0026amp;\u0026amp;id==member_id)  \n                     entry=1;  \n           }  \n           void add()  \n           {  \n                obj.header();  \n                cout\u0026lt;\u0026lt;endl\u0026lt;\u0026lt;setw(48)\u0026lt;\u0026lt;\"ADD MEMBER\\n\\n\";  \n                cout\u0026lt;\u0026lt;setw(50)\u0026lt;\u0026lt;\"Enter Member ID :\";  \n                cin\u0026gt;\u0026gt;member_id;  \n                cout\u0026lt;\u0026lt;setw(50)\u0026lt;\u0026lt;\"Enter Roll number:\";  \n                cin\u0026gt;\u0026gt;rollno;  \n                cout\u0026lt;\u0026lt;setw(50)\u0026lt;\u0026lt;\"Enter Name    :\";  \n                cin\u0026gt;\u0026gt;name;  \n                obj.footer();  \n                take=0;  \n                tcode=0;  \n                mem++;  \n           }  \n           void display()  \n           {                         cout\u0026lt;\u0026lt;member_id\u0026lt;\u0026lt;'\\t'\u0026lt;\u0026lt;rollno\u0026lt;\u0026lt;'\\t'\u0026lt;\u0026lt;name\u0026lt;\u0026lt;'\\t';\/\/\u0026lt;\u0026lt;\"\\t\\t\"\u0026lt;\u0026lt;take\u0026lt;\u0026lt;'\\t'\u0026lt;\u0026lt;tcode\u0026lt;\u0026lt;endl;  \n                if(tcode==0)  \n                {     cout.setf(ios::right);  \n                     cout.width(15);  \n                     cout\u0026lt;\u0026lt;\"No\"\u0026lt;\u0026lt;endl;  \n                }  \n                else  \n                {  \n                     cout.setf(ios::right);  \n                     cout.width(15);  \n                     cout\u0026lt;\u0026lt;tcode\u0026lt;\u0026lt;endl;  \n                }  \n           }  \n };  \n class admins: public users  \n {  \n      protected:  \n           char user[20],passwd[30];  \n      public:  \n           admins()  \n           {  \n                strcpy(user,\"gokul\");  \n                strcpy(passwd,\"gokul\");  \n           }  \n           void login();  \n };  \n void library::header()  \n {  \n      int i;  \n      clrscr();  \n      for(i=0;i\u0026lt;5;i++)cout\u0026lt;\u0026lt;endl;  \n      for(i=0;i\u0026lt;80;i++)cout\u0026lt;\u0026lt;\"*\";  \n      cout\u0026lt;\u0026lt;\"*\"\u0026lt;\u0026lt;setw(48)\u0026lt;\u0026lt;\"Digital Library\"\u0026lt;\u0026lt;setw(31)\u0026lt;\u0026lt;\"*\";  \n      cout\u0026lt;\u0026lt;\"*\"\u0026lt;\u0026lt;setw(44)\u0026lt;\u0026lt;\"KCE, CBE\"\u0026lt;\u0026lt;setw(35)\u0026lt;\u0026lt;\"*\";  \n      for(i=0;i\u0026lt;80;i++)cout\u0026lt;\u0026lt;\"*\";  \n      line=0;  \n }  \n void library::footer()  \n {  \n      int i;  \n      for(i=line;i\u0026lt;10;i++)cout\u0026lt;\u0026lt;endl;  \n      for(i=0;i\u0026lt;80;i++)cout\u0026lt;\u0026lt;\"*\";  \n }  \n void admins::login()  \n {  \n      int i=0;  \n      char c,name[20],passwrd[20];  \n      cout\u0026lt;\u0026lt;\"\\n\\n\"\u0026lt;\u0026lt;setw(51)\u0026lt;\u0026lt;\"ADMINISTRATOR LOGIN\";  \n      cout\u0026lt;\u0026lt;\"\\n\\n\"\u0026lt;\u0026lt;setw(40)\u0026lt;\u0026lt;\"username:\";  \n      cin\u0026gt;\u0026gt;name;  \n      cout\u0026lt;\u0026lt;setw(40)\u0026lt;\u0026lt;\"Password:\";  \n      while((c=getch())!=13)  \n      {  \n           passwrd[i++]=c;  \n           cout\u0026lt;\u0026lt;'*';  \n      }  \n      passwrd[i]='\\0';  \n      if((strcmp(user,name)==0)\u0026amp;\u0026amp;(strcmp(passwd,passwrd)==0))  \n      {  \n           entry=1;  \n      }  \n      else  \n      {  \n           entry=0;  \n           cout\u0026lt;\u0026lt;endl\u0026lt;\u0026lt;setw(55)\u0026lt;\u0026lt;\"Incorrect username\/password\";  \n           line=line+6;  \n           obj.footer();  \n           getch();  \n      }  \n }  \n void book_display();  \n int main()  \n {  \n      int i,login;  \n      users student[10];  \n      ifstream fin(\"members.txt\");  \n      for(i=0;i\u0026lt;mem;i++)  \n           student[i].read(fin);  \n      fin.close();  \n      obj.header();  \n      cout\u0026lt;\u0026lt;endl\u0026lt;\u0026lt;endl\u0026lt;\u0026lt;setw(45)\u0026lt;\u0026lt;\"LOGIN AS\\n\"\u0026lt;\u0026lt;endl\u0026lt;\u0026lt;setw(50)\u0026lt;\u0026lt;\"1. Administrator\\n\"\u0026lt;\u0026lt;setw(44)\u0026lt;\u0026lt;\"2. Student\\n\"\u0026lt;\u0026lt;setw(40)\u0026lt;\u0026lt;\"3. Exit\";  \n      line=line+6;  \n      obj.footer();  \n      cout\u0026lt;\u0026lt;endl\u0026lt;\u0026lt;setw(47)\u0026lt;\u0026lt;\"Enter choice:\";  \n      cin\u0026gt;\u0026gt;login;  \n      switch(login)  \n      {  \n           case 1:  \n           {  \n                admins admin;  \n                obj.header();  \n                admin.login();  \n                if(entry)  \n                {  \n                     int choice;  \n                     do  \n                     {  \n                          obj.header();  \n                          cout\u0026lt;\u0026lt;\"Welcome Gokul,\"\u0026lt;\u0026lt;setw(66)\u0026lt;\u0026lt;\"0-Logout\";  \n                          cout\u0026lt;\u0026lt;\"\\n\"\u0026lt;\u0026lt;setw(50)\u0026lt;\u0026lt;\"Adminstrator Menu\";  \n                          cout\u0026lt;\u0026lt;\"\\n\\n\"\u0026lt;\u0026lt;setw(49)\u0026lt;\u0026lt;\"1.View members\";  \n                          cout\u0026lt;\u0026lt;\"\\n\"\u0026lt;\u0026lt;setw(48)\u0026lt;\u0026lt;\"2.Add members\";  \n                          cout\u0026lt;\u0026lt;\"\\n\"\u0026lt;\u0026lt;setw(51)\u0026lt;\u0026lt;\"3.Delete members\";  \n                          cout\u0026lt;\u0026lt;\"\\n\"\u0026lt;\u0026lt;setw(47)\u0026lt;\u0026lt;\"4.View books\";  \n                          line=line+7;  \n                          obj.footer();  \n                          cout\u0026lt;\u0026lt;endl\u0026lt;\u0026lt;setw(50)\u0026lt;\u0026lt;\"Enter your choice:\";  \n                          cin\u0026gt;\u0026gt;choice;  \n                          switch(choice)  \n                          {  \n                               case 0:  \n                                    break;  \n                               case 1:  \n                               {  \n                                    int i;  \n                                    obj.header();  \n                          cout\u0026lt;\u0026lt;setw(47)\u0026lt;\u0026lt;\"Members List\"\u0026lt;\u0026lt;endl;  \n                          cout\u0026lt;\u0026lt;\"\\t\\tID\\tRoll\\tName\"\u0026lt;\u0026lt;setw(30)\u0026lt;\u0026lt;\"Book taken\"\u0026lt;\u0026lt;endl;  \n                                    for(i=0;i\u0026lt;mem;i++)  \n                                    {  \n                                         cout\u0026lt;\u0026lt;\"\\t\\t\";  \n                                         student[i].display();  \n                                    }  \n                                    line=line+mem+2;  \n                                    obj.footer();  \n                                    getch();  \n                                    break;  \n                               }  \n                               case 2:  \n                               {  \n                                    student[mem].add();  \n                                    break;  \n                               }  \n                               case 3:  \n                               {  \n                                    int i,del;  \n                                    obj.header();  \n                               cout\u0026lt;\u0026lt;setw(47)\u0026lt;\u0026lt;\"Members List\"\u0026lt;\u0026lt;endl;  \n                               cout\u0026lt;\u0026lt;\"\\tS.No\\tID\\tRoll\\tName\"\u0026lt;\u0026lt;setw(30);  \n cout\u0026lt;\u0026lt;\"Book taken\"\u0026lt;\u0026lt;endl;  \n                                    for(i=0;i\u0026lt;mem;i++)  \n                                    {  \n                                         cout\u0026lt;\u0026lt;\"\\t\"\u0026lt;\u0026lt;i+1\u0026lt;\u0026lt;\"\\t\";  \n                                         student[i].display();  \n                                    }  \n                                    line=line+mem+2;  \n                                    obj.footer();  \n                                    cout\u0026lt;\u0026lt;setw(47)\u0026lt;\u0026lt;\"Enter your choice:\";  \n                                    cin\u0026gt;\u0026gt;del;  \n                                    ofstream out(\"members.txt\");  \n                                    int j=mem;  \n                                    mem--;  \n                                    for(i=0;i\u0026lt;j;i++)  \n                                    {  \n                                         if(i+1!=del)  \n                                              student[i].update(out);  \n                                    }  \n                                    out.close();  \n                                    ifstream fin(\"members.txt\");  \n                                    for(i=0;i\u0026lt;mem;i++)  \n                                         student[i].read(fin);  \n                                    fin.close();  \n                                    break;  \n                               }  \n                               case 4:  \n                               {  \n                                    obj.header();  \n                                    book_display();  \n                                    obj.footer();  \n                                    getch();  \n                                    break;  \n                               }  \n                               default:  \n                               {       \n cout\u0026lt;\u0026lt;endl\u0026lt;\u0026lt;setw(55)\u0026lt;\u0026lt;\"Enter a valid choice...\";  \n                               getch();  \n                               }  \n                          }  \n                          ofstream out(\"members.txt\");  \n                          for(i=0;i\u0026lt;mem;i++)  \n                               student[i].update(out);  \n                          out.close();  \n                     }while(choice!=0);  \n                     entry=0;  \n                }  \n                main();  \n                break;  \n           }  \n           case 2:  \n           {  \n                obj.header();  \n                int i;  \n                cout\u0026lt;\u0026lt;\"\\n\\n\"\u0026lt;\u0026lt;setw(48)\u0026lt;\u0026lt;\"STUDENT LOGIN\";  \n                cout\u0026lt;\u0026lt;\"\\n\\n\"\u0026lt;\u0026lt;setw(43)\u0026lt;\u0026lt;\"Member ID:\";  \n                cin\u0026gt;\u0026gt;id;  \n                cout\u0026lt;\u0026lt;setw(43)\u0026lt;\u0026lt;\"Roll no:\";  \n                cin\u0026gt;\u0026gt;no;  \n                for(i=0;i\u0026lt;mem;i++)  \n                {  \n                     log=i;  \n                     student[log].login();  \n                     if(entry==1)  \n                          break;  \n                     else if(entry==0\u0026amp;\u0026amp;i+1==mem)  \n                     {  \n                          entry=0;  \n                          cout\u0026lt;\u0026lt;endl\u0026lt;\u0026lt;setw(52)\u0026lt;\u0026lt;\"Incorrect ID\/Roll no\";  \n                          line=line+7;  \n                          obj.footer();  \n                          getch();  \n                     }  \n                }  \n                if(entry)  \n                {  \n                     int choice;  \n                     do  \n                     {  \n                          obj.header();  \n                          cout\u0026lt;\u0026lt;\"Take\/Return\"\u0026lt;\u0026lt;setw(69)\u0026lt;\u0026lt;\"0-Logout\";  \n                          student[log].welcome();  \n                          book_display();  \n                          line=line+1;  \n                          obj.footer();  \n                          cout\u0026lt;\u0026lt;\"Taken books\/book code:\"\u0026lt;\u0026lt;student[log].tcode;  \n cout\u0026lt;\u0026lt;setw(25)\u0026lt;\u0026lt;\"Enter your choice:\";  \n                          cin\u0026gt;\u0026gt;choice;  \n                          if(bks[choice-1].stat==1\u0026amp;\u0026amp;student[log].take==0)  \n                          {  \n                               bks[choice-1].stat=0;  \n                               student[log].take=1;  \n                               student[log].tcode=bks[choice-1].code;  \n                               obj.header();  \n                          cout\u0026lt;\u0026lt;\"\\n\\n\"\u0026lt;\u0026lt;setw(55)\u0026lt;\u0026lt;\"Book taken successfully...\\n\";  \n                          cout\u0026lt;\u0026lt;endl\u0026lt;\u0026lt;setw(60)\u0026lt;\u0026lt;\"Return the book before 15 days.\";  \n                          cout\u0026lt;\u0026lt;endl\u0026lt;\u0026lt;setw(60)\u0026lt;\u0026lt;\"A fine of Rs.1 will be collected\\n\";  \n cout\u0026lt;\u0026lt;setw(60)\u0026lt;\u0026lt;\"for each day after the due date.\";  \n                               line=line+6;  \n                               obj.footer();  \n                               getch();  \n                          }  \n else if(bks[choice-1].stat==0\u0026amp;\u0026amp;student[log].take==1\u0026amp;\u0026amp;student[log].tcode==bks[choice-1].code)  \n                          {  \n                               int days,fine=0;  \n                               bks[choice-1].stat=1;  \n                               student[log].take=0;  \n                               student[log].tcode=0;  \n                               obj.header();  \n                               cout\u0026lt;\u0026lt;\"\\n\\n\"\u0026lt;\u0026lt;setw(48)\u0026lt;\u0026lt;\"Book Return\\n\\n\";  \n                               cout\u0026lt;\u0026lt;setw(50)\u0026lt;\u0026lt;\"Enter number of days:\";  \n                               cin\u0026gt;\u0026gt;days;  \n                               if(days\u0026gt;15)  \n                               {  \n                               fine=days-15;  \n                               cout\u0026lt;\u0026lt;\"\\n\\n\"\u0026lt;\u0026lt;setw(47)\u0026lt;\u0026lt;\"Fine amount:\"\u0026lt;\u0026lt;fine;  \n                               }  \n                               else  \n                               cout\u0026lt;\u0026lt;\"\\n\\n\"\u0026lt;\u0026lt;setw(55)\u0026lt;\u0026lt;\"Book returned successfully\";  \n                               line=line+7;  \n                               obj.footer();  \n                               getch();  \n                          }  \n                          else  \n                          {  \n                             if(choice)  \n                             {  \n                               obj.header();  \n                               cout\u0026lt;\u0026lt;\"\\n\\n\"\u0026lt;\u0026lt;setw(53)\u0026lt;\u0026lt;\"unable to take\/return\";  \n                               cout\u0026lt;\u0026lt;endl\u0026lt;\u0026lt;setw(53)\u0026lt;\u0026lt;\"Possible reasons:\\n\";  \n                               cout\u0026lt;\u0026lt;endl\u0026lt;\u0026lt;setw(56)\u0026lt;\u0026lt;\"- Return the taken book\";  \n                               cout\u0026lt;\u0026lt;endl\u0026lt;\u0026lt;setw(60)\u0026lt;\u0026lt;\"- Book may not be available\";  \n                               line=line+6;  \n                               obj.footer();  \n                               getch();  \n                             }  \n                          }  \n                          ofstream fout(\"books.txt\");  \n                          for(i=0;i\u0026lt;10;i++)  \n                          {  \n                               bks[i].update(fout);  \n                          }  \n                          fout.close();  \n                          ofstream out(\"members.txt\");  \n                          for(i=0;i\u0026lt;mem;i++)  \n                               student[i].update(out);  \n                          out.close();  \n                     }while(choice!=0);  \n                }  \n                entry=0;  \n                main();  \n                break;  \n           }  \n           case 3:  \n           {  \n                return 0;  \n           }  \n           default:  \n           {  \n                cout\u0026lt;\u0026lt;setw(52)\u0026lt;\u0026lt;\"Enter a valid option!\";  \n                getch();  \n                main();  \n                break;  \n           }  \n      }  \n      return 0;  \n }  \n void book_display()  \n {  \n      int i;  \n      ifstream fin(\"books.txt\");  \n      for(i=0;i\u0026lt;10;i++)  \n           fin\u0026gt;\u0026gt;bks[i].code\u0026gt;\u0026gt;bks[i].name\u0026gt;\u0026gt;bks[i].author\u0026gt;\u0026gt;bks[i].stat;  \n      cout\u0026lt;\u0026lt;endl\u0026lt;\u0026lt;\"S.No\\tCode\\tName\\t\\t\\tAuthor\"\u0026lt;\u0026lt;setw(34)\u0026lt;\u0026lt;\"Available\";  \n      for(i=0;i\u0026lt;10;i++)  \n      {  \n           cout\u0026lt;\u0026lt;\" \"\u0026lt;\u0026lt;i+1\u0026lt;\u0026lt;'\\t'\u0026lt;\u0026lt;bks[i].code\u0026lt;\u0026lt;\"\\t\"\u0026lt;\u0026lt;bks[i].name\u0026lt;\u0026lt;\"\\t\\t\"\u0026lt;\u0026lt;bks[i].author;  \n           if(bks[i].stat==1)  \n           {  \n                cout.setf(ios::right);  \n                cout.width(10);  \n                cout\u0026lt;\u0026lt;\"\\t\\tYes\\n\";  \n           }  \n           else  \n           {  \n                cout.setf(ios::right);  \n                cout.width(10);  \n                cout\u0026lt;\u0026lt;\"\\t\\tNo\\n\";  \n           }  \n      }  \n      line=10;  \n }  \u003C\/code\u003E\u003C\/pre\u003E\n\u003C\/h2\u003E\n\u003Cdiv class=\"separator\" style=\"clear: both; text-align: center;\"\u003E\n\u003C\/div\u003E\n\u003Ch2\u003E\n\u0026nbsp;Output:\u003C\/h2\u003E\n\u003Ch2\u003E\n\u003Ctable cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"float: left; margin-right: 1em; text-align: left;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"http:\/\/4.bp.blogspot.com\/-ftxcMJyafG0\/Uy8gXYQkyaI\/AAAAAAAAAWo\/lrI6eQRcSWk\/s1600\/1.png\" imageanchor=\"1\" style=\"clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"Login menu\" border=\"0\" src=\"http:\/\/4.bp.blogspot.com\/-ftxcMJyafG0\/Uy8gXYQkyaI\/AAAAAAAAAWo\/lrI6eQRcSWk\/s1600\/1.png\" height=\"400\" title=\"Digital library\" width=\"640\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003ELogin Menu\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cbr \/\u003E\n\u003Ctable cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"float: left; margin-right: 1em; text-align: left;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"http:\/\/1.bp.blogspot.com\/-7Y92wjI7-W4\/Uy8gXEHqkqI\/AAAAAAAAAWw\/-er4TchN_Gs\/s1600\/2.png\" imageanchor=\"1\" style=\"clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"Login welcome screen\" border=\"0\" src=\"http:\/\/1.bp.blogspot.com\/-7Y92wjI7-W4\/Uy8gXEHqkqI\/AAAAAAAAAWw\/-er4TchN_Gs\/s1600\/2.png\" height=\"400\" title=\"Admin Welcome screen\" width=\"640\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003EAdministrator Menu\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cbr \/\u003E\n\u003Ctable cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"float: left; margin-right: 1em; text-align: left;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"http:\/\/4.bp.blogspot.com\/-RoGFGeWJ0tE\/Uy8gXdztHFI\/AAAAAAAAAWs\/U5u8Fhf4aCA\/s1600\/3.png\" imageanchor=\"1\" style=\"clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"Availability of books\" border=\"0\" src=\"http:\/\/4.bp.blogspot.com\/-RoGFGeWJ0tE\/Uy8gXdztHFI\/AAAAAAAAAWs\/U5u8Fhf4aCA\/s1600\/3.png\" height=\"400\" title=\"Library Books\" width=\"640\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003EList of Available books\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cbr \/\u003E\n\u003Ctable cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"float: left; margin-right: 1em; text-align: left;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"http:\/\/4.bp.blogspot.com\/-zq-WMLoEZu0\/Uy8gYq_kauI\/AAAAAAAAAW4\/OUTfsXqSJQE\/s1600\/4.png\" imageanchor=\"1\" style=\"clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"username and password\" border=\"0\" src=\"http:\/\/4.bp.blogspot.com\/-zq-WMLoEZu0\/Uy8gYq_kauI\/AAAAAAAAAW4\/OUTfsXqSJQE\/s1600\/4.png\" height=\"400\" title=\"Members\" width=\"640\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003EMembership details\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cbr \/\u003E\n\u003Ctable cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"float: left; margin-right: 1em; text-align: left;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"http:\/\/4.bp.blogspot.com\/-fYUt41eZibA\/Uy8gY8kmIgI\/AAAAAAAAAXE\/G2LoXxzdIoM\/s1600\/5.png\" imageanchor=\"1\" style=\"clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"books list\" border=\"0\" src=\"http:\/\/4.bp.blogspot.com\/-fYUt41eZibA\/Uy8gY8kmIgI\/AAAAAAAAAXE\/G2LoXxzdIoM\/s1600\/5.png\" height=\"400\" title=\"list of books\" width=\"640\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003EAvailable books\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cbr \/\u003E\n\u003Ctable cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"float: left; margin-right: 1em; text-align: left;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"http:\/\/3.bp.blogspot.com\/-tUuqfQfl0VA\/Uy8gZKrQpLI\/AAAAAAAAAXI\/zuu5Cv40IlY\/s1600\/6.png\" imageanchor=\"1\" style=\"clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"incorrect password\" border=\"0\" src=\"http:\/\/3.bp.blogspot.com\/-tUuqfQfl0VA\/Uy8gZKrQpLI\/AAAAAAAAAXI\/zuu5Cv40IlY\/s1600\/6.png\" height=\"400\" title=\"incorrect user login\" width=\"640\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003ELogin failure\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\n\u003C\/h2\u003E\n\u003Cdiv\u003E\n\u003Cbr \/\u003E\u003C\/div\u003E\n\u003Cdiv\u003E\n\u003Cbr \/\u003E\u003C\/div\u003E\n\u003Cdiv\u003E\n\u003Cbr \/\u003E\u003C\/div\u003E\n\u003Cdiv\u003E\n\u003Cbr \/\u003E\u003C\/div\u003E\n\u003Cdiv\u003E\n\u003Cbr \/\u003E\u003C\/div\u003E\n\u003Cdiv\u003E\n\u003Cbr \/\u003E\u003C\/div\u003E\n\u003Cdiv\u003E\n\u003Cbr \/\u003E\u003C\/div\u003E\n\u003Cdiv\u003E\n\u003Cbr \/\u003E\u003C\/div\u003E\n\u003Cdiv\u003E\n\u003Cbr \/\u003E\u003C\/div\u003E\n\u003Cdiv\u003E\n\u003Cbr \/\u003E\u003C\/div\u003E\n\u003Cdiv\u003E\n\u003Cbr \/\u003E\u003C\/div\u003E\n\u003Cdiv\u003E\n\u003Cbr \/\u003E\u003C\/div\u003E\n\u003Cdiv\u003E\n\u003Cbr \/\u003E\u003C\/div\u003E\n\u003Cdiv\u003E\n\u003Cbr \/\u003E\u003C\/div\u003E\n\u003Cdiv\u003E\n\u003Cbr \/\u003E\u003C\/div\u003E\n\u003Cdiv\u003E\n\u003Cbr \/\u003E\u003C\/div\u003E\n\u003Cdiv\u003E\n\u003Cbr \/\u003E\u003C\/div\u003E\n\u003Cdiv\u003E\n\u003Cbr \/\u003E\u003C\/div\u003E\n\u003Cdiv\u003E\n\u003Cbr \/\u003E\u003C\/div\u003E\n\u003Cdiv\u003E\n\u003Cbr \/\u003E\u003C\/div\u003E\n\u003Cdiv\u003E\n\u003Cbr \/\u003E\u003C\/div\u003E\n\u003Cdiv\u003E\nComplete SRS of Library Management system ( LMS ) and algorithms are available in pdf format.\u003Cbr \/\u003E\nComment your E-mail ID to get it as a mail.\u003Cbr \/\u003E\nSubscribe via e-mail to get instant updates... Happy coding... :) ;)\u003C\/div\u003E\n\u003C\/div\u003E\n\u003C\/div\u003E\n\u003C\/div\u003E\n\u003C\/div\u003E\n"},"link":[{"rel":"replies","type":"application/atom+xml","href":"https:\/\/blog.grkweb.com\/feeds\/4803654322920561843\/comments\/default","title":"Post Comments"},{"rel":"replies","type":"text/html","href":"https:\/\/blog.grkweb.com\/2014\/03\/CPP-coding-library-management-system-mini-project.html#comment-form","title":"23 Comments"},{"rel":"edit","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/5735018943946871385\/posts\/default\/4803654322920561843"},{"rel":"self","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/5735018943946871385\/posts\/default\/4803654322920561843"},{"rel":"alternate","type":"text/html","href":"https:\/\/blog.grkweb.com\/2014\/03\/CPP-coding-library-management-system-mini-project.html","title":"Library Management System  ( CPP coding ) :"}],"author":[{"name":{"$t":"GRK"},"uri":{"$t":"http:\/\/www.blogger.com\/profile\/00099219911209322075"},"email":{"$t":"noreply@blogger.com"},"gd$image":{"rel":"http://schemas.google.com/g/2005#thumbnail","width":"16","height":"16","src":"https:\/\/img1.blogblog.com\/img\/b16-rounded.gif"}}],"media$thumbnail":{"xmlns$media":"http://search.yahoo.com/mrss/","url":"http:\/\/4.bp.blogspot.com\/-ftxcMJyafG0\/Uy8gXYQkyaI\/AAAAAAAAAWo\/lrI6eQRcSWk\/s72-c\/1.png","height":"72","width":"72"},"thr$total":{"$t":"23"}}]}});