Sign in to follow this  

(solved) Declaring a list or a stack

This topic is 4521 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, Ive been trying all stinking night to get this to work. anyway, I want to actually just declare a stack but my compiler is screaming at me, so i even tried a list, same thing. I have included #include <stack> and #include <list> in my program but I keep getting errors, any help is appreciated
#include "game.h"
#include <list>
#include <stack>

LPDIRECT3DTEXTURE9 square_image[7];
LPDIRECT3DSURFACE9 back;
LPD3DXSPRITE sprite_handler;


HRESULT result;

//timing variable
long start = GetTickCount();
blocks* focusblock = NULL;
int y = 0 ;
stack<int> test;
list<char> test2;

//initializes the game
int Game_Init(HWND hwnd)




The error my compiler gives me looks like this c:\Documents and Settings\ematsui\My Documents\Visual Studio Projects\TetriXed\game.cpp(18) : error C2143: syntax error : missing ';' before '<' c:\Documents and Settings\ematsui\My Documents\Visual Studio Projects\TetriXed\game.cpp(18) : error C2501: 'stack' : missing storage-class or type specifiers c:\Documents and Settings\ematsui\My Documents\Visual Studio Projects\TetriXed\game.cpp(19) : error C2143: syntax error : missing ';' before '<' c:\Documents and Settings\ematsui\My Documents\Visual Studio Projects\TetriXed\game.cpp(19) : error C2501: 'list' : missing storage-class or type specifiers

Share this post


Link to post
Share on other sites

This topic is 4521 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this