Advertisement Jump to content
Sign in to follow this  
PennstateLion

(solved) Declaring a list or a stack

This topic is 4921 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
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!