October 9th, 2009, 01:47 PM
ah, I should mention, this is for c++. The code reflects what my c++ prof gave us so I used the link as an example.
October 9th, 2009, 01:34 PM
I'm trying to follow:
http://www.cprogramming.com/tutorial/lesson15.html
exactly but am getting an error within
struct node {
int x;
node *next;
}; //this is line 15
September 19th, 2009, 01:25 PM
Below is the top most of my header file, am I using "#include <vector>' or vecotr<> x incorrectly? I get an error:
"error C2143: syntax error : missing ';' before '<'" at the line "vector<el_t>...
September 13th, 2009, 03:17 PM
resolved. Good call, ZuK, for turning my attention to Visual Studio.
I copied all the source files to the local folder after working on the project from a different location, on a thumb drive. I...
September 13th, 2009, 02:48 PM
Compilable code:
Stack.h
int const MAX = 10; // The MAX number of elements for the stack
// MAX is unknown to the client
// MAX is to prevent double digit numbers....
September 13th, 2009, 02:15 PM
Implementation file is the stack.cpp file mentioned above with the code:
void stack::push(el_t n)
{
if (isFull())
throw Overflow();
else{
top++;
September 13th, 2009, 01:35 PM
I don't know why I'm getting this error, this is a post fix calculator for array use review, I'll include only the push functions to save post space. If i comment out the push/pops, the errors does...
September 6th, 2009, 01:35 PM
I need to add the operands and then push the result onto the stack, when pushed; it pushes a symbol (add 6 and 5, you get the male symbol). What am I doing wrong, I need the symbol to be 11 (when...