1.基础知识简介
变量
![image.png](https://cdn.nlark.com/yuque/0/2021/png/1267880/1622304331786-d49fbcd3-9c84-4bb5-9d29-a1ee3bd6fbaa.png#align=left&display=inline&height=261&margin=%5Bobject%20Object%5D&name=image.png&originHeight=522&originWidth=670&size=335317&status=done&style=none&width=335)<br /> ![image.png](https://cdn.nlark.com/yuque/0/2021/png/1267880/1622304340262-ad073bfb-79a0-4ae9-b921-8d4d7c42e5bf.png#align=left&display=inline&height=138&margin=%5Bobject%20Object%5D&name=image.png&originHeight=275&originWidth=479&size=171173&status=done&style=none&width=239.5)
控制循环语句
<br /> ![image.png](https://cdn.nlark.com/yuque/0/2021/png/1267880/1622304348449-499fe9ee-69ee-4ddf-8830-cef6c6075e68.png#align=left&display=inline&height=270&margin=%5Bobject%20Object%5D&name=image.png&originHeight=540&originWidth=730&size=356837&status=done&style=none&width=365) <br /> ![image.png](https://cdn.nlark.com/yuque/0/2021/png/1267880/1622304358865-a6b83f36-300b-402c-8d17-98c05dcca0e3.png#align=left&display=inline&height=153&margin=%5Bobject%20Object%5D&name=image.png&originHeight=306&originWidth=715&size=219391&status=done&style=none&width=357.5)<br /> ![image.png](https://cdn.nlark.com/yuque/0/2021/png/1267880/1622304368136-9b7d2382-e846-4b75-bbf0-0edb7203d54b.png#align=left&display=inline&height=100&margin=%5Bobject%20Object%5D&name=image.png&originHeight=200&originWidth=564&size=100229&status=done&style=none&width=282)
![image.png](https://cdn.nlark.com/yuque/0/2021/png/1267880/1622304374991-c9b6bcf4-2842-4065-a776-4bdd8da369e8.png#align=left&display=inline&height=153&margin=%5Bobject%20Object%5D&name=image.png&originHeight=306&originWidth=715&size=219391&status=done&style=none&width=357.5)<br />![image.png](https://cdn.nlark.com/yuque/0/2021/png/1267880/1622304401012-1bf100cd-f901-4bfe-a57a-9b1a06aaaa4e.png#align=left&display=inline&height=217&margin=%5Bobject%20Object%5D&name=image.png&originHeight=433&originWidth=589&size=244421&status=done&style=none&width=294.5)
函数:
<br /> ![image.png](https://cdn.nlark.com/yuque/0/2021/png/1267880/1622304409917-3c13c79f-bf07-4acc-bf47-8c085d28efda.png#align=left&display=inline&height=261&margin=%5Bobject%20Object%5D&name=image.png&originHeight=522&originWidth=841&size=363652&status=done&style=none&width=420.5)<br /> 函数里面嵌套函数<br /> <br /> ![image.png](https://cdn.nlark.com/yuque/0/2021/png/1267880/1622304415176-1a085ccb-02e4-4e64-8aed-0cc8b19e719f.png#align=left&display=inline&height=106&margin=%5Bobject%20Object%5D&name=image.png&originHeight=211&originWidth=491&size=70220&status=done&style=none&width=245.5)
函数指针<br /> <br /> ![image.png](https://cdn.nlark.com/yuque/0/2021/png/1267880/1622304421842-b39cf680-0ac1-4f7a-9bee-7dc56bbce0d8.png#align=left&display=inline&height=90&margin=%5Bobject%20Object%5D&name=image.png&originHeight=179&originWidth=488&size=91827&status=done&style=none&width=244)
函数指针作为参数<br /> <br /> ![image.png](https://cdn.nlark.com/yuque/0/2021/png/1267880/1622304428279-892bff85-2564-4592-826e-6fcaea55557f.png#align=left&display=inline&height=121&margin=%5Bobject%20Object%5D&name=image.png&originHeight=241&originWidth=697&size=108340&status=done&style=none&width=348.5)<br />
定义字典<br /> ![image.png](https://cdn.nlark.com/yuque/0/2021/png/1267880/1622304443434-50441d84-05b5-4e13-937f-d456c163d403.png#align=left&display=inline&height=116&margin=%5Bobject%20Object%5D&name=image.png&originHeight=232&originWidth=540&size=116446&status=done&style=none&width=270)
![image.png](https://cdn.nlark.com/yuque/0/2021/png/1267880/1622304454891-38ea5cfe-a6e6-4b9c-b6fa-691ffd9c921a.png#align=left&display=inline&height=235&margin=%5Bobject%20Object%5D&name=image.png&originHeight=469&originWidth=502&size=253819&status=done&style=none&width=251)
2.闭包
作用:反向存储、做回调、减轻代理
用在2个对象之间通讯
2.结构体
默认构造函数
定义构造函数
注:
结构体内定义函数
结构体局部变量相加操作
<br />