*************************Compiler Errors**********************************
1>c:\users\lauren\documents\visual studio 2010\projects\composition\composition\filter.cpp(27): error C2065: 'resistor' : undeclared identifier
1>c:\users\lauren\documents\visual studio 2010\projects\composition\composition\filter.cpp(27): error C2228: left of '.setResistance' must have class/struct/union
1> type is ''unknown-type''
***************************************************************************
I have a Resistor.h, Capacitor.h, and a Filter.h file mad already. As well as resistor, capacitor, and filter.cpp files. All of my errors state that resistor is a undeclared identifier and setResistance must have a class.
I don't see you declare an object "resistor" anywhere. That would look something like: MyResistorClass resistor;
Depending on what this function is supposed to do, however, your program might not work as intended.