I'll try, thanks. I'm trying to understand how I can utilize a vector of a shared pointer class that uses a ABC and it's children. I'm not experienced in C++ (150 hours or so during the past few...
Type: Posts; User: zdq
I'll try, thanks. I'm trying to understand how I can utilize a vector of a shared pointer class that uses a ABC and it's children. I'm not experienced in C++ (150 hours or so during the past few...
The thing looks like this now:
#include <iostream>
#include <fstream>
#include <iterator>
#include <vector>
#include <string>
using namespace std;
Hi!
When I remove the ampersand i get:
||In function 'std::ostream& operator<<(std::ostream&, A&)':|
|39|error: no match for 'operator<<' in 'os <<...
Thanks for the help guys/girls! Whiteflags or someone else can you please explain how you would call class A's print through another class D from main?
I tried
class D
{
public:
friend...
I want to print out the information for the children inside a vector, utilizing a shared pointer class that utilizes an Abstract base class. I cannot figure out the right way to overload it however....