I've this code for school and I keep getting these 2 errors:
error C2146: syntax error : missing ';' before identifier 'node_entry'
fatal error C1004: unexpected end of file found
Plz help , it's URGENT
thanx in advance
here are the .h & .cpp :
Printable View
I've this code for school and I keep getting these 2 errors:
error C2146: syntax error : missing ';' before identifier 'node_entry'
fatal error C1004: unexpected end of file found
Plz help , it's URGENT
thanx in advance
here are the .h & .cpp :
typedef char Queue_entry node_entry ;
You're missing a comma after Queue_entry. But be aware that this won't solve all your problems, the next compile resulted in 102 errors! Most of them seem to be references to the identifier Node which you don't declare in time, and places where you used spaces instead of underscores.
And you should use <iostream> instead of <iostream.h>. Then use the namespace "std" and you'll be fine.
Thanx I've done that but HOW TO INCLUDE THE STD
BTW. I forget to attach the node.h file but here it is in case needed
under the include statements use:
using namespace std;