首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏零基础自学Java

    【Java】基础10流程控制语句

    这一段描述下来,找工作面试的过程就是流程。公司对面试人员的安排就叫做流程的控制。 在程序中也是一样的道理。 一、顺序结构 打电话、笔试、一面、二面、录取这就是顺序结构。 这也是最简单最基础的一种结构。 ? 二、选择结构 还是以面试为例子,面试官会根据面试者的笔试成绩选择是否将他留下,这就涉及到选择结构了。 注意事项 表达式中的值要与case中的值数据类型一致。 在switch中的表达式只能是byte、short、int、char、Enum(枚举值)、String(字符串)。用其它的类型值编译会报错。 1.for循环 例子:循环打印10遍“HelloWorld” ? 执行流程: 执行顺序:①②③④>②③④>②③④…②不满足为止。 ①为初始化语句(int i=0) ②为判断语句(i<10?) 执行流程: 执行顺序:①②③>④②③>④②③…④不满足为止。

    75620发布于 2020-07-29
  • 来自专栏花落的技术专栏

    Android 10 Activity 创建流程

    app.getWindowProcessController()); ... } 我们继续分析主进程ActivityThread,AMS通知它创建Application,且两个进程之间数据同步

    1.4K20发布于 2021-11-24
  • 来自专栏各类技术文章~

    【Go基础】启动流程

    前言 每次写 Go 程序我总是好奇他的启动流程,今天我们来扒一扒。 注:我用的电脑是 win10,所以很多地方并不是以 linux 为主。 同时文章中的部分代码会经过处理的,会更注重于核心代码流程。 希望读者能够懂一点点的汇编语言。 汇编 Go 程序启动需要对自身运行时进行初始化,其真正的程序入口在 runtime 包里面。 不同平台的入口文件都不同, 以 AMD64 架构上的 Linux 和 macOS 以及 win10 为例,分别位于:src/runtime/rt0_linux_amd64.s 和 src/runtime 程序引导和初始化工作是整个运行时最关键的基础步骤之一。 这里的初始化也是有一定顺序规则的,至于为什么,可能是因为前面的函数为后面的函数提供一定的重要数据

    75600编辑于 2021-12-24
  • 来自专栏pandacode_cn

    Swift基础 控制流程

    这些包括while循环多次执行任务;if、guard和switch语句,以根据特定条件执行不同的代码分支;以及break和continue将执行流程转移到代码中的另一个点等语句。 (在这种情况下,3到10的幂)。 它使用以1开头和以10结尾的闭合范围将1(即3到0的幂)乘以3、十倍。对于此计算,每次通过循环的单个计数器值是不必要的——代码只需正确执行循环次数。 board[03] = +08; board[06] = +11; board[09] = +09; board[10] = +02 board[14] = -10; board[19] = -11; if #available(iOS 10, macOS 10.12, *) { // Use iOS 10 APIs on iOS, and use macOS 10.12 APIs on macOS

    68900编辑于 2023-07-17
  • 来自专栏技术杂记

    etcd 基础10

    先进行比较,然后根据比较结果来决定是否进行后面的操作,可以用于构建分布式锁机制(协调服务)

    34510编辑于 2022-01-20
  • 来自专栏技术杂记

    Logstash 基础10

    发现这边的终端有输出 [root@h102 etc]# /opt/logstash/bin/logstash -f logstash-syslog.conf Settings: Default filter workers: 1 Logstash startup completed { "message" => "Dec 23 12:11:43 louis postfix/smtpd[31499]: connect from unknown[95.75.93.154]\

    31020编辑于 2022-02-10
  • 来自专栏技术杂记

    Codis 基础10

    root@h102 codis]# [root@h102 codis]# bin/codis-config server add 1 localhost:6380 slave 2015/12/04 21:10

    31020编辑于 2022-03-22
  • 来自专栏技术杂记

    SQLite 基础10

    drop table t2; sqlite> .tables company department hello test ui sqlite> 插入数据 45000.00 ); sqlite> insert into company values (7, 'James', 24, 'Houston', 10000.00 ); sqlite> ---- 查询数据

    30330编辑于 2021-12-01
  • 来自专栏技术杂记

    Snort 基础10

    解决办法:安装 libdnet.x86_64 和 libdnet-devel.x86_64

    68720编辑于 2022-05-03
  • 来自专栏技术杂记

    Docker 基础10

    删除数据 [root@h103 ~]# ll /var/lib/docker total 16 drwx------ 3 root root 77 Jan 19 17:37 containers

    33520编辑于 2022-02-09
  • 来自专栏技术杂记

    Consul 基础10

    服务是可以使用 HTTP API 进行动态修改 (HTTP API 可以用来进行动态的添加,删除,修改服务)

    28720编辑于 2021-12-01
  • 来自专栏技术杂记

    RabbitMQ基础10

    重置node [root@h102 rabbitmq]# rabbitmqctl reset Resetting node rabbit@h102 ... [root@h102 rabbitmq]# 让节点恢复到初始状态(原文是返回处女状态 ) This command resets the RabbitMQ node . Return a RabbitMQ node to its virgin state 必须先停掉RabbitMQ应用,才能成功执行,否则会报错 [root@h102 rabbitm

    35330编辑于 2022-05-04
  • 来自专栏技术杂记

    UnrealIRCd 基础10

    这里只是最基本的,使其可以运行并且能够访问的配置,详细的配置方法,放到以后再作讲解

    30610编辑于 2021-11-29
  • 来自专栏技术杂记

    fio基础10

    bs_is_seq_randIfthisoptionisset,fiowillusethenormalread,writeblocksizesettingsassequential,randominstead.AnyrandomreadorwritewillusetheWRITEblocksizesettings,andanysequentialreadorwritewillusetheREADblocksizesetting.zero_buffersIfthisoptionisgiven,fiowillinittheIObufferstoallzeroes.Thedefaultistofillthemwithrandomdata.refill_buffersIfthisoptionisgiven,fiowillrefilltheIObuffersoneverysubmit.Thedefaultistoonlyfillitatinittimeandreusethatdata.Onlymakessenseifzero_buffersisn't specified, naturally. If data verification is enabled, refill_buffers is also automatically enabled. scramble_buffers=bool If refill_buffers is too costly and the target is using data deduplication, then setting this option will slightly modify the IO buffer contents to defeat normal de-dupe attempts. This is not enough to defeat more clever block compression attempts, but it will stop naive dedupe of blocks. Default: true. buffer_compress_percentage=int If this is set, then fio will attempt to provide IO buffer content (on WRITEs) that compress to the specified level. Fio does this by providing a mix of random data and a fixed pattern. The fixed pattern is either zeroes, or the pattern specified by buffer_pattern. If the pattern option is used, it might skew the compression ratio slightly. Note that this is per block size unit, for file/disk wide compression level that matches this setting, you'llalsowanttosetrefill_buffers.buffer_compress_chunk=intSeebuffer_compress_percentage.Thissettingallowsfiotomanagehowbigtherangesofrandomdataandzeroeddatais.Withoutthisset,fiowillprovidebuffer_compress_percentageofblocksizerandomdata,followedbytheremainingzeroed.Withthissettosomechunksizesmallerthantheblocksize,fiocanalternaterandomandzeroeddatathroughouttheIObuffer.buffer_pattern=strIfset,fiowillfilltheiobufferswiththispattern.Ifnotset,thecontentsofiobuffersisdefinedbytheotheroptionsrelatedtobuffercontents.Thesettingcanbeanypatternofbytes,andcanbeprefixedwith0xforhexvalues.Itmayalsobeastring,wherethestringmustthenbewrappedwit

    64840编辑于 2022-04-24
  • 来自专栏技术杂记

    memcached基础10

    通过stats items 和 stats cachedump slab_id limit_num配合get命令可以遍历memcached的记录。

    25710编辑于 2022-06-26
  • 来自专栏技术杂记

    Tengine基础10

    创建 apps/status.passwd 文件,创建方法(用户设为test,密码设为tengine)

    42240编辑于 2022-05-03
  • 来自专栏技术杂记

    nginx基础10

    Note: 本地要打开防火墙 -A INPUT -p tcp -m state –state NEW -m tcp –dport 80 -j ACCEPThttp://soft.dog/2015/10

    26610编辑于 2022-05-12
  • 来自专栏技术杂记

    HAproxy 基础10

    进行访问 过程中会弹出对话框,输入帐号密码后,就可以看到监控界面 ---- 命令汇总 md5sum haproxy-1.6.3.tar.gz tar -xzvf haproxy-1.6.3.tar.gz make TARGET=linux2628 ARCH=x86_64 PREFIX=/usr/local/haproxy make install PREFIX=/usr/local/haproxy ll /usr/local/haproxy/ tree /usr/local/haproxy/ /usr

    39210编辑于 2022-01-19
  • 来自专栏Postgresql源码分析

    Postgresql源码(10)LWLockAcquire流程分析

    功能特点: 信号量驱动唤醒,不做spin 等锁形成队列,依次唤醒 与PGPROC结构耦合,多进程协作

    29820编辑于 2022-05-12
  • 来自专栏以终为始

    判断数据类型(10分)【 C语言基础

    判断数据类型(10分) Description 假设现在你要判断数据类型是否为int、long long、double,输入n个字符串,请你判断其代表的数据类型是什么,且输入的每个字符串保证是正数,且是这三种类型的一种 (n<=10) 接下来n行每行一个字符串s。(|s|<=10) Output 对于每个字符串s,输出“int”或“long long”或“double”。 int i = len - 1; i >= sb; i --){ x += cnt * (int)(a[i] -'0'); cnt *=10

    45410编辑于 2023-03-09
领券