Pointing class property to another class with vectors
- by jmclem
I've got a simple class, and another class that has a property that points to the first class:
#include <iostream>
#include <vector>
using namespace std;
class first{
public:
int var1;
};
class second{
public:
first* classvar;
};
Then, i've got a void that's supposed to point "classvar" to the intended iteration of the…