View Single Post
  #3  
Old 03-18-2005, 04:20 AM
sysadmin
Hill Giant
 
Join Date: Feb 2005
Posts: 163
Default as is saif.. SEARCH IS YOUR FRIEND

Visual Studio Developer site says

Quote:
Compiler Error C2177
constant too big

A constant value is too large for the variable type it is assigned.

The following sample generates C2177:

// C2177.cpp
int main() {
int a=18446744073709551616; // C2177
int b=18446744073709551615; // OK
}

FNW knows his stuff, I don't but I was smart to find the same answer on VS2005 website and you did not, even when you searched "for a long time". Also you should rename yourself to sonic because as I see you have no intuition.
__________________
Sysadmin.

Last edited by sysadmin; 03-18-2005 at 12:24 PM..
Reply With Quote