Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

queue problems

Status
Not open for further replies.

EnCocytus

Programmer
Dec 18, 2002
24
US
Hey,
I am having problems declare a simple queue. As far as I can tell, I'm declaring it right. Most likely it is just one of those things where the problem is right in front of me. Anyways, here is how I've been declaring it.

Code:
#include <queue.h>

static queue<char *> q;

But I keep getting errors such as

syntax error : missing ';' before '<'

I seem to get this same error no matter how I change the code. What am I doing wrong?



1001100 1110101 1101011 1100101
 
static std::queue<char*> q;

-or-

using namespace std;
static queue<char*> q;


I REALLY hope that helps.
Will
 
Doh, I knew it was something really easy that I was missing. I hit myself on my forehead when I saw your post. Thanx, apatterno.

1001100 1110101 1101011 1100101
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top