black

C++语言程序设计

登录

问答题

简答题

There are two int variables: a and b, don’t use “if”, “? :”, “switch”or other judgement statements, find out the biggest one of the two numbers.

【参考答案】

( ( a + b ) + abs( a - b ) ) / 2

相关考题

问答题 类成员函数的重载、覆盖和隐藏区别是什么?

问答题 请说出const与#define 相比,有何优点?

问答题 分别写出BOOL,int,float,指针类型的变量a 与“零”的比较语句。

All Rights Reserved 版权所有©求知题库网库(csqiuzhi.com)

备案号:湘ICP备14005140号-1

经营许可证号:湘B2-20140064