#include <iostream>
using namespace std;
int main()
{ int a,b,c,Highest;
cout<<"Enter three numbers:";
cin>>a>>b>>c;
Highest=(a>b&&a>c?a:b>c?b:c);
cout<<"Highest is:"<<Highe
我想寫這個代碼更短: var fn = function (a) {
if (a) {
somefn.call(null, a);
}
};
使用箭頭聲明,這將是: var fn = (a) => { if (a) somefn.call(null, a); };
我想更短代碼,如果使用條件運算符: var fn = (a) => a ? somefn.c