Home > Back-end >  LINK2019 a cannot resolve the external file
LINK2019 a cannot resolve the external file

Time:10-20

 
# # ifndef SEQQUEUE_H
# define SEQQUEUE_H
# include "Queue. H"//abstract base class
#include

#include
using namespace std;

Template
The class SeqQueue: public Queue
{
Public:
SeqQueue (int sz=10);
~ SeqQueue ();
Bool the EnQueue (const T& X);//if the queue, will x into the queue, queue overflow after this processing
Bool to DeQueue (T& X);//if the queue is not empty, then quit the team head element returned by the x
Bool getFront (T& X);//if the queue is not empty, then return the value of adversary element
Void makeEmpty ();//empty
Boolean IsEmpty () const;//judgment queue is empty, empty return true

Bool IsFull () const;//judgment queue full, full return true

Const int getSize ();

Friend ostream& The operator & lt; <(ostream& OS, SeqQueue & Q);//output operator overloading
T getData (int I) const
{
Return elements [I];
}
Protected:
T * elements;
Int rear, the front;
Int maxSize;
};
Template
Ostream& Operator<(ostream& OS, SeqQueue & Q)
{
Os<"Front=" & lt; }
}
# endif

 
//K_Fib. H
Void K_Fib (int k, int Max)
{
SeqQueue s;
S.E nQueue (0);
S.E nQueue (1);
Cout & lt; }


 
//test. The CPP
#include
using namespace std;
# include "SeqQueue. H"
# include "K_Fib. H"
Int main ()
{
Int K;
Int Max;
Cout<& lt;" O K order the Fibonacci sequence "& lt; Cout<& lt;" Please enter the K value: ";
Cin> K;

Cout<& lt;" Please enter the Max value: ";
Cin> Max.

Cout<& lt;" The single largest less than or equal to "& lt; K_Fib (K, Max);
Coutreturn 0;
}





Link to make a mistake, says the overload output stream function in K_Fib referenced in the (), but don't know why?

CodePudding user response:


# # ifndef...
# define...


Void K_Fib (int k, int Max)
{
SeqQueue s;
S.E nQueue (0);
S.E nQueue (1);
Cout & lt; }
# endif

CodePudding user response:

reference 1st floor yshuise response:

# # ifndef...
# define...


Void K_Fib (int k, int Max)
{
SeqQueue s;
S.E nQueue (0);
S.E nQueue (1);
Cout & lt; }
# endif

Still won't do

CodePudding user response:


Repaired repaired, I'll find the Microsoft's official documents, repaired
  • Related