• Advertisement

Archived

This topic is now archived and is closed to further replies.

Allocation size of operators

This topic is 5289 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

Advertisement

#include <limits>

int maxint = std::numeric_limits<int>::max();


Edit - missing semicolon.


[ Start Here ! | How To Ask Smart Questions | Recommended C++ Books | C++ FAQ Lite | Function Ptrs | CppTips Archive ]
[ Header Files | File Format Docs | LNK2001 | C++ STL Doc | STLPort | Free C++ IDE | Boost C++ Lib | MSVC6 Lib Fixes ]


[edited by - Fruny on August 31, 2003 7:29:12 PM]

Share this post


Link to post
Share on other sites
Thank you very much Fruny, thats excatly what I was looking for.

Edit: for those that cant get that to compile, here is the max int value:

int maxint = 2147483647;

- BlueDev

[edited by - BlueDev on August 31, 2003 9:37:20 PM]

Share this post


Link to post
Share on other sites
quote:
Original post by BlueDev
for those that cant get that to compile, here is the max int value:

int maxint = 2147483647;


Correction: That''s the max int value on your machine. It is not the same on all computers.

Share this post


Link to post
Share on other sites

  • Advertisement