When I run this code (Visual Studio 2005), I get the following compiler errors and can't fix this no matter what I do: c:\documents and settings\dthomas006\my documents\visual studio 2005\projects\pa3-q1\pa3-q1\stacktype.h(10) : error C2143: syntax error : missing ';' before '<' c:\documents and settings\dthomas006\my documents\visual studio 2005\projects\pa3-q1\pa3-q1\stacktype.h(24) : see reference to class template instantiation 'StackType<ItemType>' being compiled c:\documents and settings\dthomas006\my documents\visual studio 2005\projects\pa3-q1\pa3-q1\stacktype.h(10) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\documents and settings\dthomas006\my documents\visual studio 2005\projects\pa3-q1\pa3-q1\stacktype.h(10) : error C2238: unexpected token(s) preceding ';' To me, it sounds like it doesn't like ItemType not being …

Member Avatar
Member Avatar
+0 forum 2

Can anyone tell me why I'm getting build errors on the actual function heading and the line under it (**) saying "type bool is unexpected" and that I'm missing a ; before {? I've looked and can't find anything. Also, I get this error but there is no line 80 and all my braces match up (I think): pa2-q1.cpp(80) : fatal error C1075: end of file found before the left brace '{' at '.\pa2-q1.cpp(17)' was matched Any help is appreciated! :confused: [code=c++]#include <iostream> #include <conio.h> using namespace std; const int MAX_ITEMS=10; bool Bsearch (int , int , int , int, …

Member Avatar
Member Avatar
+0 forum 13

The End.