VC++6.0中出现error2977
#include<iostream.h>#include<string.h>
#include"Vector.h"
struct riverSides{
int churchL;
int wildL;
int churchR;
int wildR;
int boat;
};
…………(因为用手机传的,函数没有传完)
int main()
{ int churchL = 3, wildL = 3, churchR = 0, wildR = 0;
Vector<riverSides> lasta;
Vector<char> operation;
int bb=0;
riverSides c;
c.churchL= 3;
c.wildL= 3;
c.churchR= 0;
c.wildR= 0;
c.boat= 1;
lasta.Push_back(c);
CvsWdfs<riverSides, Vector<riverSides>, Vector<char> ,int>(c,lasta,operation,bb); lasta.Pop_back(); system("pause");
return 0;}
显示错误的是这一行error2977(我也百度过,好像需要改预处理器的预处理定义,不过我不会)
CvsWdfs<riverSides, Vector<riverSides>, Vector<char> ,int>(c,lasta,operation,bb);