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 23:12:02
|
> -----Original Message----- > From: Per Westermark [mailto:pw...@ia...] > Sent: Wednesday, October 16, 2002 10:16 PM > To: Ioannis Vranos > Cc: dev...@li... > Subject: RE: [Dev-C++] Need help with vector<...> > > > 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... What i wanted to say was that long long is a system-extension type regarding C++. In a platform the type long could be a 64-bit type. I mean that it is not safe to think long as less than 64-bit or anything specific. In C99 there is the type long long, however nothing restriccts it to be 128-bit in another platform. Unavoidably a size-specific type is implementation-dependent and thus code using it cannot be considered portable (even when using the int64_t C99 type, since it is not required to be implemented. This kind of things in C99 is one of what i do not like in C99). Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL: http://run.to/noicys |