Jump to content
  • Advertisement
Sign in to follow this  
PennstateLion

(solved) Declaring a list or a stack

This topic is 4735 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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!