No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Im getting a bunch of errors from the compiler.Not sure what im doing wrong.... Header File [CODE] #include<iostream> using namespace std; #ifndef STACK_H #define STACK_H template<class stackElem, int maxSize=80> class stack { public: stack() { top=-1; } bool push(const stackElem &item); }; #include "stack.cpp" #endif [/CODE] this is the .cpp … |
|
this is a piece of my header file that is a template and my implementtion file that is using it.I keep getting errors and dont know why,any help would be appreciated. [CODE]template<class T> class List { public: private: T *list; int size; int numElements; bool isValid(int location) const; }; [/CODE] … |
|
I keep getting errors and i dont know what im doing wrong.I've included just pieces of these three files. The compiler is giving me errors and i dont know what's wrong. this is my header file List.h not all but some of it. [CODE]#include <iostream> using namespace std; #ifndef INTEGERLIST_H … |
|
If i had to write a program with 10 different functions are you aloud to just make some functions templates and other functions initialized with data types like normal??? |
|
Hello, I am trying to write a function that will read an array of numbers with the count of the numbers. I want to take the numbers and assign them to letters.Then print out the counts of A's, B's,C's,D's and F's. What i have isnt finished but im really frustrated … |