Difficulties on atributting a array to another [closed]
You can’t copy an array with operator=. You can fix your problem using modern C++ #include <array> #include <cstddef> // #include <list> #include <string> // #include <vector> struct book{ std::string author; std::string title; }; std::array<book, 100> library; // or std::vector<book> library; // or std::list<book> library; void removebook(std::size_t idx) { for (std::size_t cont = idx; cont … Read more