1/14/2011

求余数 C++

英文中 余数 叫 reminder
求余数操作 叫 Modulo
Modulo is the operation that gives the remainder of a division of two values。
在c++中是百分号 %
例如:
a=11;
b=3;
c=a%b;
结果时c=2;

没有评论: