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.
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment