“C++:const关键字”与“Openshift:查看节点状态”:页面之间的差异

来自WHY42
(页面间差异)
(已建立頁面,內容為 " * const 如果出现在* 号左边,代表被指物是常量 * 如果出现在*号右边,代表指针本身是常量 * 如果*号两边都有,则表明二者…")
 
(已建立頁面,內容為 "<source lang="bash"> oc get nodes oc get nodes -o wide </source> <pre> [vagrant@master ~]$ oc get nodes NAME STATUS ROLES AGE VER…")
 
第1行: 第1行:
<source lang="bash">
oc get nodes
oc get nodes -o wide
</source>


* const 如果出现在* 号左边,代表被指物是常量
* 如果出现在*号右边,代表指针本身是常量
* 如果*号两边都有,则表明二者都是常量
<source lang="c++">
char * const p;
const char * p; //这和下面的含义一样
char const * p;
const char * const p;
</source>


[[Category:Programming]]
<pre>
[vagrant@master ~]$ oc get nodes
NAME                STATUS    ROLES          AGE      VERSION
master.example.com  Ready    infra,master  1d        v1.11.0+d4cacc0
node01.example.com  Ready    compute        1d        v1.11.0+d4cacc0
node02.example.com  Ready    compute        1d        v1.11.0+d4cacc0
[vagrant@master ~]$ oc get nodes -o wide
NAME                STATUS    ROLES          AGE      VERSION          INTERNAL-IP      EXTERNAL-IP  OS-IMAGE                KERNEL-VERSION              CONTAINER-RUNTIME
master.example.com  Ready    infra,master  1d        v1.11.0+d4cacc0  192.168.11.100  <none>        CentOS Linux 7 (Core)  3.10.0-957.12.2.el7.x86_64  docker://1.13.1
node01.example.com  Ready    compute        1d        v1.11.0+d4cacc0  192.168.11.101  <none>        CentOS Linux 7 (Core)  3.10.0-957.12.2.el7.x86_64  docker://1.13.1
node02.example.com  Ready    compute        1d        v1.11.0+d4cacc0  192.168.11.102  <none>        CentOS Linux 7 (Core)  3.10.0-957.12.2.el7.x86_64  docker://1.13.1
</pre>
[[Category:Openshift]]

2020年3月12日 (四) 04:21的版本

oc get nodes
oc get nodes -o wide


[vagrant@master ~]$ oc get nodes
NAME                 STATUS    ROLES          AGE       VERSION
master.example.com   Ready     infra,master   1d        v1.11.0+d4cacc0
node01.example.com   Ready     compute        1d        v1.11.0+d4cacc0
node02.example.com   Ready     compute        1d        v1.11.0+d4cacc0
[vagrant@master ~]$ oc get nodes -o wide
NAME                 STATUS    ROLES          AGE       VERSION           INTERNAL-IP      EXTERNAL-IP   OS-IMAGE                KERNEL-VERSION               CONTAINER-RUNTIME
master.example.com   Ready     infra,master   1d        v1.11.0+d4cacc0   192.168.11.100   <none>        CentOS Linux 7 (Core)   3.10.0-957.12.2.el7.x86_64   docker://1.13.1
node01.example.com   Ready     compute        1d        v1.11.0+d4cacc0   192.168.11.101   <none>        CentOS Linux 7 (Core)   3.10.0-957.12.2.el7.x86_64   docker://1.13.1
node02.example.com   Ready     compute        1d        v1.11.0+d4cacc0   192.168.11.102   <none>        CentOS Linux 7 (Core)   3.10.0-957.12.2.el7.x86_64   docker://1.13.1