RE: [Dev-C++] Need help with vector<...>
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Per W. <pw...@ia...> - 2002-10-16 19:16:07
|
But then again, you often have to work with (at least) 64-bit integers to solve real problems. The choice often is: solve with gcc and long long, or not getting the work done at all. Multi-precision math libraries might not be fast enough, and if the customer doesn't have a 64-bit machine... /Per W On Wed, 16 Oct 2002, Ioannis Vranos wrote: > (signed) long long and unsigned long long is not an ANSI / ISO C++ type. > =20 > =20 > =20 > Ioannis >=20 > * Ioannis Vranos > * Programming pages: http://www.noicys.freeurl.com > <http://www.noicys.freeurl.com/>=20 > * Alternative URL: http://run.to/noicys >=20 > -----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<...> >=20 >=20 > 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? >=20 >=20 |