首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏C++核心准则原文翻译

    C++核心准则ES.70:进行选择时,switch语句比if语句好

    ES.70: Prefer a switch-statement to an if-statement when there is a choice ES.70:进行选择时,switch语句比if语句好

    41120发布于 2020-05-29
  • 来自专栏全栈程序员必看

    java中定义常量_形参可以是表达式吗

    .”); } } } 显然,如果foo-package在运行时从外部jar文件加载,则编译器在技术上不能假设Foo.CONDITION将为false,并且不应该消除if-statement的真实分支.

    83220编辑于 2022-11-10
  • 来自专栏Postgresql源码分析

    gcc语法解析如何解决dangling else的问题?

    c_expand_end_cond (); if (extra_warnings && stmt_count++ == $<itype>1) warning ("%Hempty body in an if-statement

    42160编辑于 2023-10-13
  • 来自专栏C++核心准则原文翻译

    C++核心准则ES.12:不要在嵌套作用域中重复使用同样的名称

    d = value_to_be_returned; // ... } return d; If this is a large if-statement, it is easy to overlook

    1.2K10发布于 2020-04-24
  • 来自专栏企鹅号快讯

    Go 系列教程——8.if-else 语句

    下一个教程 - 循环 via: https://golangbot.com/if-statement/ 作者:Nick Coghlan 译者:Dingo1991 校对:rxcai 本文由 GCTT 原创编译

    828100发布于 2018-02-08
  • 来自专栏C++核心准则原文翻译

    C++核心准则ES.87:不要在条件语句中增加多余的==或!=

    Example(示例) By definition, a condition in an if-statement, while-statement, or a for-statement selects

    74310发布于 2020-06-17
  • 来自专栏章鱼的慢慢技术路

    CodeCombat森林关卡Python代码

    还没准备好),就用你的普通攻击 hero.attack(enemy) pass 7,边远地区的对峙 while True: # 使用 ‘isReady’ 中的一个 “if-statement

    1.3K30发布于 2018-06-04
  • 来自专栏白帽子安全笔记

    免杀卡巴斯基及字符串加密

    IatCamouflage() { PVOID pAddress = NULL; int* A = (int*)Helper(&pAddress); // Impossible if-statement

    33110编辑于 2024-10-28
  • 来自专栏全栈程序员必看

    flake8配置_errorflashdownloadfailed-could

    Use ‘key in dict’ instead of ‘key in dict.keys()’ (example) General Code Style: SIM102: Use a single if-statement

    82220编辑于 2022-09-30
  • 来自专栏c语言与cpp编程

    老外的嵌入式编程规范(值得一看)

    / } 你可以在下一个缩进级别中声明新的变量 int32_t a, b; a = foo(); if (a) { int32_t c, d; /* OK, c and d are in if-statement

    2.1K20发布于 2021-09-15
  • 来自专栏C语言中文社区

    这才是理想中的 C 语言编程规范

    / } 你可以在下一个缩进级别中声明新的变量 int32_t a, b; a = foo(); if (a) { int32_t c, d; /* OK, c and d are in if-statement

    3.1K20编辑于 2022-05-31
  • 来自专栏AI电堂

    值得一看:老外的嵌入式编程规范

    } 你可以在下一个缩进级别中声明新的变量 int32_t a, b; a = foo(); if (a) { int32_t c, d; /* OK, c and d are in if-statement

    1.6K40发布于 2021-07-02
  • 来自专栏嵌入式

    Linux 内核编码风格

    followed by a continuation of the same statement, 131 ie a "while" in a do-statement or an "else" in an if-statement

    3.1K30发布于 2020-08-26
  • 来自专栏changxin7

    2.并发编程多编程

    reason for hiding calls to Process() inside if __name__ == "__main__" since statements inside this if-statement

    1.4K20发布于 2019-08-20
领券