Problem with my code....

i have written this code that I am having some problems with.. I can't figure out the error codes... Here is the code...

[// Array.cpp : Defines the entry point for the console application.
//

#include <iostream>
#include "ResistorLCR.h"
using namespace std;

void userSetRValues(ResistorLCR * pE_resistorArray, int count);
void showRValues(const ResistorLCR * pE_resistorArray, int count);


int main(void)
{

// Get number of Resistors from user
int numberOfResistors;
cout << "How many Resistors do you want (at least two)? " << flush;
cin >> numberOfResistors;
cout << endl;


// Allocate memory for that many ResistorArrays
ResistorLCR * pE_resistorList = 0;
pE_resistorList = new ResistorLCR[numberOfResistors];

// Test userSetResistorLCRValues & showResistorLCRValues fucntions
if(pE_resistorList != 0)
{
userSetResistorLCRValues(pE_resistorList, numberOfResistors);
showResistorLCRValues(pE_resistorList, numberOfResistors);
}
else
{
cout << "Unable to allocate memory" << endl;
}

cout << "Press ENTER key to exit" << flush;
cin.ignore(2);

return 0;
}

/*---------------------------------------------------------------------------
- userSetResistorArrayValues
-
- Receives pointer to ResistorArray array and size of array.
-
- Interacts with user to enter Resistor nominal values.
-
- Writes values to array in calling program.
---------------------------------------------------------------------------*/
void userSetResistorArrayValues(ResistorLCR * pE_ResistorArrayArray, int count)
{
double inputValue;

for(int i = 0; i < count; ++i)
{
cout << "Enter nominal value for Resistor " << i << ": "
<< flush;
cin >> inputValue;
pE_ResistorArrayArray->setNominalValue(inputValue);
++pE_ResistorArrayArray;

cout << "Enter Tolerance % for Resistor " << i << ": "
<< flush;
cin >> inputValue;
pE_ResistorArrayArray->setToleranceValue(inputValue);
++pE_ResistorArrayArray;
}
return;
}


/*---------------------------------------------------------------------------
- showResistorArrayValues
-
- Receives const pointer to ResistorArray array (to protect its values)
- and number of ResistorArray objects in the array.
-
- Displays nominal values, one per line.
---------------------------------------------------------------------------*/
void showResistorArrayValues(const resistorArray * pE_ResistorArrayArray, int count)
{

cout << "R#\tResistance (Ohms)\tTolerance(%)" << endl;
for(int i = 0; i < count; ++i)
{
cout << i << "\t" ;
cout << pE_resistorList->getNominalValue( ) << i << " = "
++pE_resistorArray;
cout << pE_resistorList->getToleranceValue() << endl << endl;
++pE_ResistorLCR;
}
return;
}
]



Here are the error codes:

error C3861: 'userSetResistorLCRValues': identifier not found
error C3861: 'showResistorLCRValues': identifier not found
error C2039: 'setNominalValue' : is not a member of 'ResistorLCR'
: see declaration of 'ResistorLCR'
error C2039: 'setToleranceValue' : is not a member of 'ResistorLCR'
: see declaration of 'ResistorLCR'
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
error C2143: syntax error : missing ',' before '*'
error C2065: 'count' : undeclared identifier
error C2065: 'pE_resistorList' : undeclared identifier
error C2227: left of '->getNominalValue' must point to class/struct/union/generic type
error C2105: '++' needs l-value
error C2146: syntax error : missing ';' before identifier 'pE_resistorArray'
error C2065: 'pE_resistorArray' : undeclared identifier
error C2065: 'pE_resistorList' : undeclared identifier
error C2227: left of '->getToleranceValue' must point to error C2065: 'pE_ResistorLCR' : undeclared identifier
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Hi ! Use code tags please XD
Start from the top:
error C3861: 'userSetResistorLCRValues': identifier not found

Check the prototype and the definition. They are not the same.
Topic archived. No new replies allowed.