62 570
Assignments Done
99%
Successfully Done
In June 2018

Answer to Question #1673 in C++ for Nathan

Question #1673
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
Expert's answer
We need whole program code to answer to your question. Most probably some libraries you are linking are undefined.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions