I have here a basic and incomplete class, though self-sufficient. However, whenever I declare a variable of this class in my program, the program goes into an endless loop, doing some hard drive writing. I would think there's a problem with the constructor, BUT THERE'S NOTHING IN THE CONSTRUCTOR. Please take a look at this and tell me what you think.
Code:class DataStorage { public: DataStorage() { } ~DataStorage() { } array SearchByName(char* search) { array ReturnValue; int AmountFound = 0; for(int x = 0; x < BANK_CAPASITY; x++) { if(BanksMap[x] == 1) { if(!strcmpi(Banks[x].GetName(),search)) { AmountFound++; ReturnValue[AmountFound] = x; } ReturnValue[0] = AmountFound; } else { } } return ReturnValue; } int ReadInFile(const char* FileName) { char* BigBuffer = new char[]; ifstream FileReader(FileName); /* for(int x = 0; x > -1; x++) { FileReader >> BigBuffer[x]; }*/ return 0; } private: BANK Banks[BANK_CAPASITY]; int BanksMap[BANK_CAPASITY]; };