检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:雒晓霞 LUO Xiao-xia(Kunshan Second Vocational School,Jiangsu Province,Kunshan 215300,China;Kunshan Open University,Kunshan 215300,China)
机构地区:[1]江苏省昆山第二中等专业学校,昆山215300 [2]昆山开放大学,昆山215300
出 处:《价值工程》2024年第35期139-141,共3页Value Engineering
摘 要:闰年的判断是一个相对复杂的逻辑运算过程,逻辑运算中短路机制的运用可以提升判断的执行效率。本文通过对四种不同顺序组合的闰年和平年判断条件在一个判断周期内的判断次数进行了研究,发现了具有最高执行效率的逻辑表达式,提出了较为合理的判断程序代码。The determination of leap years is a relatively complex logical operation process,and the use of short-circuit mechanisms in logical operations can improve the execution efficiency of judgment.This article studies the number of judgments in a judgment cycle for four different combinations of leap year and normal year judgment conditions,and discovers the logical expression with the highest execution efficiency.A more reasonable judgment program code is proposed.
分 类 号:TP312[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.7