摘要
给出了在C语言环境中计算两个整数相除所得商和余数的自定义函数以及运算符重载。这些函数和运算符重载方便了用户在C语言环境中进行带余除法的运算。程序的运行结果证明了所定义函数以及运算符重载的正确性。
In the present paper,we presented the user defined functions and operator overloadings for computing the quotient and remainder obtained by division of two integers in C language environment.These functions and operator overloadings facilitate the users to carry out the operation of division with remainder in C language environment.The result of the running of the program shows the correctness of functions and operator overloadings we defined.
出处
《咸阳师范学院学报》
2010年第2期4-6,共3页
Journal of Xianyang Normal University
基金
咸阳师范学院教改项目(200902029)
关键词
带余除法
商
余数
C语言
运算符重载
division with remainder
quotient
remainder
C language
operator overloading