CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Threaded View

  1. #1
    Join Date
    Dec 2020
    Posts
    1

    i have 2 "errors term does not evaluate to a function tacking 2 arguments" in line 64

    Code:
    #include "Bibleoteca.h"
    #include<list>
    #include<vector>
    #include<algorithm>
    #include<iostream>
    using namespace std;
    
    void Bibleoteca::Adauga(Carte book)
    {
    	books.push_back(book);
    	cout << endl;
    }
    void Bibleoteca::Afis()
    {
    	for (auto& elem : books)
    	{
    
    		elem.Print();
    	
    	}
    }
    void Bibleoteca::cauta_Titlu(string title)
    {
    	for (auto  &elem : books)
    	{
    		if (elem.titlu == title)
    		{
    			 elem.Print();
    		}
    	}
    }
    
    
    //void Bibleoteca::caut_Editura(string editura)
    //{
    //	auto reult = find(begin(books), end(books), editura);
    //	if (reult != end(books))
    //	{
    //		this->Afis();
    //	}
    //	else
    //	{
    //		cout << "librarie nu contine" << endl;
    //	}
    //}
    
    Carte * Bibleoteca::caut_ISBN(string ISBN)
    {
    	for (auto &elem : books)
    	{
    		if (elem.ISBN == ISBN)
    		{
    			return &elem;
    		}
    	}
    	return nullptr;
    }
    void Bibleoteca::unic_ISBN(string ISBN)
    {
    
    	auto count =  unique(books.begin(), books.end(),books.size());
    
    }
    Last edited by VictorN; December 29th, 2020 at 04:29 AM. Reason: added CODE tags

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured