hello all
working on a class project in C++ using eclipse and g++ stuck a zip of the project as an attachment but here is the basics
#include <iostream>
#include "Complex.h"
#include "FileHandling.h"
using namespace std;
int main(int argc, char **argv) {
FileHandling file();// opens the file and gets the variables from last use
Complex complex();//creates an object of complex
complex().setRepairPtr(file().getRapairPtr());//pulls the repair pointer in file and sends it to complex
complex().setNumberOfUnits(file().getNumUnits());//pulls the number of units in file and sends it to complex
complex().setNumberOfRepairs(file().getNumRepair());//pulls the number of repairs in file and sends it to complex
complex().setUnitPtr(file().getUnitsPtr());//pulls the unit pointer in file and sends it to complex
complex().buildVectors();//used to build Vectors in complex and all units
complex().start();//starts the interface part of the program
//now that the interface has ended the program must save and then exit
file().setRepairPtr(complex().getRepairPtr());//returns the repair pointer to file for output in case of change to original
file().setUnitsPtr(complex().getUnitPtr());//returns the pointer for units to file for output in case of change to original
file().setNumRepair(complex().getNumberOfRepairs());//sets the number of repairs for use as an array in conjunction with pointers
file().setNumUnits(complex().getNumberOfUnits());//sets the number of units for use as an array in conjunction with pointers
return 0;
}
i get "undefined reference to 'complex()'" errors on the complex() lines
and "undefined reference to 'file()'" errors on the file() lines
then when i try to use array lists in side the objects compiler says "undefined reference to 'Complex::complexList()'" complexList being a vector in my complex object.
slimier issues inside other sub objects
any help would be much appreciated:?: