Sign in to follow this  
PennstateLion

(solved) Declaring a list or a stack

Recommended Posts

PennstateLion    196
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

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