I'm getting an error that states "undefined reference"
I'm new to c++, so I don't know for sure but I think the problem is in the following snippet of code
can you tell me how to fix it?
#include <iostream>
struct Stack;
void initialize(Stack);
bool push(Stack,int);
bool isEmpty(Stack);
int pop(Stack);
using namespace std;
struct Stack
{
int data[100];
int top;
};
int main()
{
Stack s;
int number=0;
initialize(s);
cin>>number;
push(s,number);
number=pop(s);}
//other methods
1
Expert's answer
2011-03-02T05:51:29-0500
We need whole program code to answer to your question. Most probably some libraries you are linking are undefined.
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments