I have two Forms, both are including the same .cpp file that has these global variables:
static vector<News> allNews;
static vector<user> allUsers;
static admin appAdmin("admin", "adminpassword");
static int userIndex =0;
The problem is that, when Form A adds News objects to the vector, the second Form B seems to be viewing a different vector that is empty.
How can I solve this?