Hey, I'm trying to put all the objects of my class into an array so it will be easier to display.. It doesn't work though! Here is the code:
#include <cstdlib>
#include <iostream>
#include "manager.h"
#include <windows.h>
using namespace std;
void displayManagers();
int main(int argc, char *argv[])
{
displayManagers();
system("PAUSE");
return EXIT_SUCCESS;
}
void displayManagers()
{
Manager m[1](10, "name", "name", "sfsf", 15, 45, 10);
}
main.cpp bad array initializer is the error message. Any any guys? Thanks in advanced