#include { if (isb == temp->isbn) { cout <p>#include <iostream>#include <string>#include <fstream>using namespace std;class book{    public:    string author;    string publisher;    string title;    int year;    string isbn;    book* next;    book(string, string, string, int, string, book*);};book::book(string tempTitle, string tempAuthor, string tempPublisher, int tempYear, string tempIsbn, book* tempNext){    title=tempTitle;    author=tempAuthor;    publisher=tempPublisher;    year=tempYear;    isbn=tempIsbn;    next=tempNext;}typedef book* bookPtr;void getline(istream &stream, string &str, char delimiter){    char temp500;    stream.get(temp, 500, delimiter);    stream.ignore(500, delimiter);    str = temp;}void getline(istream &stream, int &num, char delimiter){    int temp;    stream >> temp;    stream.ignore(500, delimiter);    num= temp;}void insert (bookPtr &root);void delTitle(bookPtr &root);void readFile(bookPtr &root);bookPtr locateNode(bookPtr temp, string titl);void delIsbn(bookPtr &root);bookPtr locateNodeIsbn(bookPtr temp, string isb);void printAuthor(bookPtr temp);void searchIsbn(bookPtr temp);void saveFile(bookPtr temp);void printList(bookPtr temp);int countNodes(bookPtr temp);void readFile(bookPtr &root){    int numBooks, yea;    string titl, aut, pub, isb;    ifstream infile (“books.txt”, ios::in);    infile >> numBooks;    infile.ignore(500,’<br /> ‘);    for (int count = 0; count < numBooks; count++)    {        getline(infile, titl, ' ');        getline(infile, aut, ' ');        getline(infile, pub, ' ');        getline(infile,yea, ' ');        getline(infile, isb, ' ');        root = new book (titl, aut, pub, yea, isb, root);    }}void insert (bookPtr &root){    string titl, aut, pub, isb;    int yea;    cout<<"Title: ";    cin.ignore(500,' ');    getline(cin, titl, ' ');    cout<<"Author: ";    getline(cin, aut, ' ');    cout<<"Publisher: ";    getline(cin,pub, ' ');    cout<<"Year: ";    getline(cin,yea, ' ');    cout<<"ISBN: ";    getline(cin, isb, ' ');    root = new book (titl, aut, pub, yea, isb, root);}void delTitle(bookPtr &root){    string titl;    cout << "Book Title: ";    cin.ignore(500,' ');    getline(cin, titl, ' ');    bookPtr p = locateNode(root, titl);    if (p == NULL)        cout << " Deletion cannot be done. ";    else if (root == p)        root = p->next;    else    {        bookPtr q = root;        while (q->next != p)            q = q->next;        q->next = p->next;    }    delete p;}bookPtr locateNode(bookPtr temp, string titl){    while (temp != NULL)    {        if (temp->title == titl)        {            return temp;        }        temp=temp->next;    }    return NULL;}void delIsbn(bookPtr &root){    string isb;    cout<<"Book ISBN: ";    cin.ignore(500,' ');    getline(cin, isb, ' ');    bookPtr p = locateNodeIsbn(root, isb);    if (p == NULL)        cout << " Deletion cannot be done. ";    else if (root == p)        root = p->next;    else    {        bookPtr q = root;        while (q->next != p)            q = q->next;        q->next = p->next;    }    delete p;}bookPtr locateNodeIsbn(bookPtr temp, string isb){    while (temp != NULL)    {        if (temp->isbn == isb)        {            return temp;        }        temp = temp->next;    }    return NULL;}void searchIsbn(bookPtr temp){    string isb;    cout << "Book ISBN: ";    cin.ignore(500,' ');    getline(cin, isb, ' ');    while (temp != NULL)    {        if (isb == temp->isbn)        {            cout<<temp->title << endl;            cout<<temp->author << endl;            cout<<temp->publisher << endl;            cout<<temp->year << endl;            cout<<temp->isbn << " ";        }        temp=temp->next;    }    cout<<endl;}void printList(bookPtr temp){    while (temp != NULL)    {        cout<<temp->title << endl;        cout<<temp->author << endl;        cout<<temp->publisher << endl;        cout<<temp->year << endl;        cout<<temp->isbn << " ";        temp=temp->next;    }    cout << " ";}void printAuthor(bookPtr temp){    string aut;    cout << "Author name: ";    cin.ignore(500,' ');    getline(cin, aut, ' ');    while (temp != NULL)    {        if (temp->author == aut)        {            cout<<temp->title << endl;            cout<<temp->author << endl;            cout<<temp->publisher << endl;            cout<<temp->year << endl;            cout<<temp->isbn << endl;        }        temp=temp->next;    }    cout<<endl;}void saveFile(bookPtr temp){    int count = countNodes(temp);    ofstream outFile("saved.txt",ios::out);    outFile << count << endl;    while (temp != NULL)    {        outFile<<temp->title << endl;        outFile<<temp->author << endl;        outFile<<temp->publisher << endl;        outFile<<temp->year << endl;        outFile<<temp->isbn << endl;        temp=temp->next;    }    cout<<endl;}int countNodes(bookPtr temp){    int countB = 0;    while (temp != NULL)    {        countB++;        temp = temp->next;    }    return countB;}int main(){    int choice;    bookPtr root = NULL;    readFile(root);    do    {        cout<<" PROJECT ON (L M S) ";        cout<<" MENU Choose your likely option !"<<endl;        cout<<"(1) Add book to the library directory"<<endl;        cout<<"(2) Delete book according to Title"<<endl;        cout<<"(3) Delete book related to Isbn"<<endl;        cout<<"(4) Search any book through Isbn."<<endl;        cout<<"(5) List out all the books."<<endl;        cout<<"(6) List all books by an author."<<endl;        cout<<"(7) Quit."<<endl;        cout<<"Enter your likely choice which you want to select from top menu ";        cin>>choice;        if (1 <= choice && choice <= 6)        {            switch (choice)            {            case 1:                insert(root);                break;            case 2:                delTitle(root);                break;            case 3:                delIsbn(root);                break;            case 4:                searchIsbn(root);                break;            case 5:                printList(root);                break;            case 6:                printAuthor(root);                break;            default:                cout<<"Invalid selection so enter again. ";                break;            }        }    }    while (choice!=7);      saveFile(root);    return 0;}</p> <div class='yarpp-related'> <h3>Related posts:</h3><ol> <li><a href="https://insectsunlocked.org/freshwater-model-for-more-complex-processes-of-trophic-interactions/" rel="bookmark" title="Freshwater model for more complex processes of trophic interactions">Freshwater model for more complex processes of trophic interactions </a></li> <li><a href="https://insectsunlocked.org/mississippi-waterway-developments-towards-those-soutane-furthermore-then-afterward/" rel="bookmark" title="Mississippi. waterway developments towards those soutane Furthermore then afterward">Mississippi. waterway developments towards those soutane Furthermore then afterward </a></li> <li><a href="https://insectsunlocked.org/cp5603-like-md5-and-sha-1-md5-is-a-popular/" rel="bookmark" title="CP5603 like MD5 and SHA-1. MD5 is a popular">CP5603 like MD5 and SHA-1. MD5 is a popular </a></li> <li><a href="https://insectsunlocked.org/counseling-the-pastor-has-as-a-pastor-duties-include/" rel="bookmark" title="Counseling the pastor has. As a pastor, duties include">Counseling the pastor has. As a pastor, duties include </a></li> </ol> </div> <nav class="navigation post-navigation" role="navigation"> <h2 class="screen-reader-text">Post navigation</h2> <div class="nav-links"><div class="nav-previous"><a href="https://insectsunlocked.org/how-leave-due-to-financial-problems-then-he-moved/" rel="prev"><span class="meta-nav" aria-hidden="true">Previous</span> <span class="screen-reader-text">Previous post:</span> <span class="post-title">How leave due to financial problems. Then he moved</span></a></div><div class="nav-next"><a href="https://insectsunlocked.org/hay-reach-the-level-7-in-the-first-few/" rel="next"><span class="meta-nav" aria-hidden="true">Next</span> <span class="screen-reader-text">Next post:</span> <span class="post-title">HAY reach the level 7 in the first few</span></a></div></div> </nav></div> <div class="navigation"> <div class="clearfix"></div> </div> </div> <div class="col-lg-4 col-md-4 sidebar"> <aside id="recent-posts-2" class="widget widget_recent_entries"> <h3 class="widget-title">Free Reviews For You</h3> <ul> <li> <a href="https://insectsunlocked.org/the-from-japan-to-china-to-exchange-for-goods-tomas/">The from Japan to China to exchange for goods.Tomas</a> </li> <li> <a href="https://insectsunlocked.org/gender-assumption-about-sex-differences-parsons-believes-that-there/">Gender assumption about sex differences Parsons believes that there</a> </li> <li> <a href="https://insectsunlocked.org/after-in-rural-areas-of-pakistan-and-a-key/">After in rural areas of Pakistan and a key</a> </li> <li> <a href="https://insectsunlocked.org/il-polizze-oppure-alle-pratiche-che-si-possono-espletare/">Il polizze oppure alle pratiche che si possono espletare</a> </li> <li> <a href="https://insectsunlocked.org/it-reactions-follow-designed-to-present-certain-steps-for-rape/">It reactions follow.Designed to present certain steps for rape</a> </li> </ul> </aside></div> </div> <div class="clearfix"></div> </div> </div> <div id="" class="footer copyright-wrapper"> <div class="container"> <div class="row"> <div class="footer_hide col-xs-12 footer-block"> </div> <div class="footer_hide col-xs-12 footer-block"> </div> <div class="footer_hide col-xs-12 col-xs-12 footer-block"> </div> <div class="footer_hide col-xs-12 footer-block"> </div> </div> </div> </div> <div class="footer-2"> <div class="copyright container"> <p>Copyright 2019 - <a href=https://www.vwthemes.com/themes/free-academic-wordpress-theme/ target='_blank'>Academic WordPress Theme</a></p> <a href="#" class="scrollup"><i class="fas fa-arrow-up"></i></a> </div> <div class="clear"></div> </div> <script> var advanced_ads_ga_UID = ''; var advanced_ads_ga_anonymIP = true; advanced_ads_check_adblocker=function(t){function e(t){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(t){return setTimeout(t,16)}).call(window,t)}var n=[],a=null;return e(function(){var t=document.createElement("div");t.innerHTML=" ",t.setAttribute("class","ad_unit ad-unit text-ad text_ad pub_300x250"),t.setAttribute("style","width: 1px !important; height: 1px !important; position: absolute !important; left: 0px !important; top: 0px !important; overflow: hidden !important;"),document.body.appendChild(t),e(function(){var e=window.getComputedStyle&&window.getComputedStyle(t),o=e&&e.getPropertyValue("-moz-binding");a=e&&"none"===e.getPropertyValue("display")||"string"==typeof o&&-1!==o.indexOf("about:");for(var i=0;i<n.length;i++)n[i](a);n=[]})}),function(t){if(null===a)return void n.push(t);t(a)}}(),function(){var t=function(t,e){this.name=t,this.UID=e,this.analyticsObject=null;var n=this,a={hitType:"event",eventCategory:"Advanced Ads",eventAction:"AdBlock",eventLabel:"Yes",nonInteraction:!0,transport:"beacon"};this.analyticsObject="string"==typeof GoogleAnalyticsObject&&"function"==typeof window[GoogleAnalyticsObject]&&window[GoogleAnalyticsObject],!1===this.analyticsObject?(!function(t,e,n,a,o,i,d){t.GoogleAnalyticsObject=o,t[o]=t[o]||function(){(t[o].q=t[o].q||[]).push(arguments)},t[o].l=1*new Date,i=e.createElement(n),d=e.getElementsByTagName(n)[0],i.async=1,i.src="https://www.google-analytics.com/analytics.js",d.parentNode.insertBefore(i,d)}(window,document,"script",0,"_advads_ga"),_advads_ga("create",n.UID,"auto",this.name),advanced_ads_ga_anonymIP&&_advads_ga("set","anonymizeIp",!0),_advads_ga(n.name+".send",a)):(window.console&&window.console.log("Advanced Ads Analytics >> using other's variable named `"+GoogleAnalyticsObject+"`"),window[GoogleAnalyticsObject]("create",n.UID,"auto",this.name),window[GoogleAnalyticsObject]("set","anonymizeIp",!0),window[GoogleAnalyticsObject](n.name+".send",a))};advanced_ads_check_adblocker(function(e){e&&"string"==typeof advanced_ads_ga_UID&&advanced_ads_ga_UID&&new t("advadsTracker",advanced_ads_ga_UID)})}(); </script><script type='text/javascript' src='https://insectsunlocked.org/wp-content/themes/vw-education-academy/assets/js/bootstrap.js?ver=5.2.4'></script> <script type='text/javascript' src='https://insectsunlocked.org/wp-includes/js/wp-embed.min.js?ver=5.2.4'></script> <div class="acase-footer-cta" id="acase-1626389592"><!-- begin banner-bottom --> <div class="banner-bottom" style="position: fixed; left: 0; right: 0; bottom: 0; width: 100%; color: #fff; z-index: 100; display: flex; flex-wrap: wrap; min-height: 60px; background: #800000; align-items: center; justify-content: center;"> <div class="banner-bottom__close" style=" position: absolute; content: ''; top: 0; right: 8px; font-size: 22px; font-weight: 300; color: #fff; cursor: pointer; transition: opacity 300ms; width: 14px; height: 15px;"> x </div> <p style="margin: 0; color: #fff; padding: inherit;" >Haven't Found The Essay You Want?</p> <a href="https://essaycp.com/?login-first=1&utm_source=insectsunlocked.org&utm_campaign=footer&utm_medium=conv&utm_term=img&utm_content=login-first" onclick="ga('send', 'event', 'CTA', 'click', 'footer');" rel="nofollow" style="color: #000; margin: 0 20px; font-size: 14px; padding: 0 17px; font-weight: 500; background: #fff; line-height: 43px; border-radius: 20px; text-decoration: none; display: inline-block; text-transform: uppercase; transition: box-shadow 300ms; box-shadow: 0px 5px 13px -3px #000">Get your custom essay</a> <p style="margin: 0; color: #fff; padding: inherit;">For Only $13.90/page</p> </div> <!-- end banner-bottom --> <script> function hideFooterBanner() { let bottomBanner = document.querySelector('.banner-bottom'); let btnClose = document.querySelector('.banner-bottom__close'); if (bottomBanner) { btnClose.onclick = function () { bottomBanner.style.opacity = '0'; } } } hideFooterBanner(); function elementInViewport(footer, banner) { if (footer && banner) { var ftop = footer.offsetTop; var visibleFooter = ftop - window.pageYOffset - window.innerHeight; if (visibleFooter <= 0) { banner.style.bottom = 0 - visibleFooter + 'px'; } else { banner.style.bottom = '0px'; } } } let footer = document.querySelector('#footer-wrapper'); let banner = document.querySelector('.banner-bottom'); elementInViewport(footer, banner); window.onscroll = function () { elementInViewport(footer, banner); } </script></div><div class="acase-open-chat_3" id="acase-1643160109"> <!-- begin open-chat --> <div class="open-chat" onload="ga('send', 'event', 'pop up', 'close', '20sec_CheckItOut');" style="position: fixed; right: 30px; bottom: 150px; width: 222px; z-index: 500; font-weight: 700; animation-name: chat; animation-duration: 2s; animation-fill-mode: both; transform: translateY(50px)"> <div class="open-chat__close" onclick="ga('send', 'event', 'pop up', 'close', '20sec_CheckItOut');" style=" position: absolute; content: ''; top: 0; right: 8px; font-size: 22px; font-weight: 300; color: #fff; cursor: pointer; transition: opacity 300ms; width: 14px; height: 15px;">x</div> <div class="open-chat__header" style="padding: 9px 0 13px 17px; border-radius: 3px 3px 0 0; background: #800000;"> <img src="https://randomuser.me/api/portraits/women/51.jpg" class="open-chat__logo" style="width: 60px; height: 60px; border-radius: 50%; border: 2px solid #fff; display: inline-block; vertical-align: middle; box-shadow: 0 0 16px rgba(27, 30, 23, .48)"> <p class="open-chat__name" style="color: #fff; font-size: 14px; font-weight: 300; margin: 0 0 0 6px; display: inline-block; vertical-align: middle">Hi!<br>I'm Josephine!</p> </div> <div class="open-chat__content" style="background: #fff; padding: 17px 20px 35px; border-radius: 0 0 3px 3px; box-shadow: 0px 5px 10px 0px rgba(27, 36, 55, .1)"> <p style="padding-bottom: 10px; margin: 0; font-size: 14px; font-weight: 400; line-height: 20px; letter-spacing: .3px">Would you like to get a custom essay? How about receiving a customized one?</p> <a onclick="ga('send', 'event', 'pop up', 'click', '20sec_CheckItOut');" href="https://essaycp.com/order?login-first=1&utm_source=insectsunlocked.org&utm_campaign=20_second&utm_medium=conv&utm_term=receiving_a_customized_one&utm_content=login-first" rel="nofollow noopener noreferrer" style="color: #000; display: block; font-size: 15px; font-weight: 700; text-decoration: underline" target="_blank">Check it out</a> </div> <div class="open-chat__message" data-count-massage="1" style="position: absolute; content: ''; right: -9px; bottom: -30px; width: 60px; height: 60px; border-radius: 50%; background: #800000"><svg style="position: absolute; width: 30px; height: 30px; left: 50%; top: 50%; transform: translate(-50%, -50%);" enable-background="new 0 0 128 128" height="128px" id="Layer_1" version="1.1" viewBox="0 0 128 128" width="128px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g><g><path d="M112,0H16C7.164,0,0,7.164,0,16v64c0,8.836,7.164,16,16,16h24l32,32V96h40c8.836,0,16-7.164,16-16V16 C128,7.164,120.836,0,112,0z M120,80c0,4.414-3.59,8-8,8H64v20.688L43.313,88H16c-4.41,0-8-3.586-8-8V16c0-4.414,3.59-8,8-8h96 c4.41,0,8,3.586,8,8V80z" fill="#fff"></path></g></g><path d="M24,32h80v-8H24V32z" fill="#fff"></path><path d="M24,48h80v-8H24V48z" fill="#fff"></path><path d="M24,64h48v-8H24V64z" fill="#fff"></path></svg></div> </div> <!-- end open-chat --> <script> function hideappearingChat() { let chat = document.querySelector('.open-chat'); let btnClose = document.querySelector('.open-chat__close'); if (chat) { btnClose.onclick = function () { chat.style.display = 'none'; } } } hideappearingChat(); </script></div> </body> </html> <!-- Dynamic page generated in 0.056 seconds. --> <!-- Cached page generated by WP-Super-Cache on 2019-11-08 20:01:47 --> <!-- super cache -->