RE: [Dev-C++] Need help with vector<...>
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Ioannis V. <no...@ho...> - 2002-10-16 16:27:38
|
(signed) long long and unsigned long long is not an ANSI / ISO C++ type. =20 =20 =20 Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com <http://www.noicys.freeurl.com/>=20 * Alternative URL: http://run.to/noicys -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of J=F6rgen Sent: Wednesday, October 16, 2002 2:00 AM To: dev...@li... Subject: [Dev-C++] Need help with vector<...> Hi again. =20 If I place the following line in the header file "ComputerPlayer.h" as a private member of my class "ComputerPlayer" =20 vector< pair< unsigned long long, pair< vector< pair<int, double> >, vector< pair<int, double> > > > > legalVect; =20 the program compiles and links just fine, but it's terminated almost immediately when run. =20 I'm going to use the vector in two different functions, thats why I need it as a member of the class.=20 For debugging purposes, I implemented it as a local member in one of the functions (At the moment the only one of the two implemented), see below. Now it works just great. Why is that? Why can't I have it in the headerfile? |