Course Solutions Uncategorized (Solved) : C Need Help Editing Code Run Successfully Giving Error Line 184 Someone Help Please Simple Q29008163 . . . .

(Solved) : C Need Help Editing Code Run Successfully Giving Error Line 184 Someone Help Please Simple Q29008163 . . . .

 

C++ need help editing my code so it can run successfully itsgiving me a error on line 184 someone help please:

SimpleVector.h
————–

#ifndef SimpleVector_h
#define SimpleVector_h

#include
#include
using namespace std;

template
class SimpleVector
{
private:
T *elements;
int numElements;
int capacity;
public:
SimpleVector(int capacity = 10);
SimpleVector(const SimpleVector &v);
SimpleVector& operator = (const SimpleVector& v);
void add(T elem);
void set(int index, T elem);
int search(T elem);
void sort();
void listAll();
int getNumElements();
T get(int index);
~SimpleVector();
};

template
SimpleVector::SimpleVector(int cap)
{
capacity = cap;
elements = new T[cap];
numElements = 0;

}

template
SimpleVector::SimpleVector(const SimpleVector &v)
{
capacity = v.capacity;
elements = new T[capacity];
numElements = v.numElements;
for(int i = 0; i < numElements; i++)
elements[i] = v.elements[i];
}

template
SimpleVector& SimpleVector::operator = (const SimpleVector&v)
{
delete []elements;
capacity = v.capacity;
elements = new T[capacity];
numElements = v.numElements;
for(int i = 0; i < numElements; i++)
elements[i] = v.elements[i];

}

template
void SimpleVector::add(T

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post