从www.CppReference.com打包的C++参考手册

源代码在线查看: div.html

软件大小: 840 K
上传用户: dingjuan_01
关键词: CppReference www com 参考手册
下载地址: 免注册下载 普通下载 VIP

相关代码

																				  				  "HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org">								  div				  																				  				  				  								  				    cppreference.com > 				    "index.html">Standard C Math > div				  								  				    div				  								  				    Syntax:				  				  				  #include <stdlib.h>				  div_t div( int numerator, int denominator );												  The function div() returns the quotient and remainder of the				  operation numerator / denominator. The				  div_t structure is defined in stdlib.h, and has at				  least:				  				   int quot;   // The quotient				   int rem;    // The remainder         												  For example, the following code displays the quotient and				  remainder of x/y:				  				   div_t temp;				   temp = div( x, y );				   printf( "%d divided by %d yields %d with a remainder of %d\n",				           x, y, temp.quot, temp.rem );         												  				    Related topics:				  								  				    ldiv				  				  				  				  												  				  											

相关资源