当前位置:网站首页>C language learning log 10.19
C language learning log 10.19
2022-06-13 04:57:00 【Today is also a day without baldness】
One . random number
Every call rand() You get a random integer
Need to add C Several libraries of language
Two .break vs continue
break: Out of the loop
continue: Skip this round of the loop and the rest of the statements go to the next round .
They can only do to the level of the cycle where they are .
3、 ... and . Array
Data can be stored in variables , Each variable has a name , There is a type , And its living space . If we need to save some of the same types 、 Similar meanings 、 Data in the same living space , We can use arrays to hold this data , Instead of using many independent variables . Array Is a fixed length data structure , For storage Specified type The data of . There can be many data in an array , All data types are identical Of

Define an array :
< data type > Variable name [ Element quantity ]; for example :int grades[100]; double weight[100];
The number of elements must be an integer
边栏推荐
- promise处理js多线程全部获得结果后同一处理结果
- OpenCV中的saturate操作(饱和操作)究竟是怎么回事
- Chapter 18 pagination: Introduction
- General communication protocol for industrial Internet
- 【JS解决】leedcode 117. 填充每个节点的下一个右侧节点指针 II
- The differences between the four startup modes of activity and the applicable scenarios and the setting methods of the two startup modes
- 自动评教脚本使用的配置
- Shell built-in string substitution
- Force deduction 121 questions
- 2022 oxidation process operation certificate examination question bank and simulation examination
猜你喜欢
随机推荐
自动评教脚本使用的配置
QT brushes and brushes
Tita: Xinrui group uses one-to-one talk to promote the success of performance change
About mission planning and improving execution
Section 5 - Operator details
Sampo Lock
PostgreSQL Guide: inside exploration (Chapter 10 basic backup and point in time recovery) - Notes
shell变量学习笔记
Recommended temporary online image compression tool
rainbow
[leetcode]- binary search
QT using layout manager is invalid or abnormal
OpenCV中的saturate操作(饱和操作)究竟是怎么回事
Brick story
General communication protocol for industrial Internet
Colab tutorial (super detailed version) and colab pro/pro+ evaluation
Must know must know -c language keywords
Promise processing JS multithreads get the same processing result after all the results are obtained
CMB written test graphical reasoning
Several methods of identifying equivalent circuit of circuit drawing

![[leetcode]- binary search](/img/7f/7d1f616c491c6fb0be93f591da6df1.png)







