当前位置:网站首页>Write a program to define an array with 10 int elements, and take its position in the array as the initial value of each element.
Write a program to define an array with 10 int elements, and take its position in the array as the initial value of each element.
2022-07-04 10:26:00 【qq_ fifty-eight million seven hundred and thirty-six thousand t】
* Write a program to define a 10 individual int An array of elements of type , And with it
The position in the array is used as the initial value of each element .*/
int main(void)
{
int array[10];
for (int i = 0; i != 10; i++)
{
array[i] = i;
cout << array[i] << ' ';
}
return 0;
}
边栏推荐
- OSPF comprehensive experiment
- The time difference between the past time and the present time of uniapp processing, such as just, a few minutes ago, a few hours ago, a few months ago
- 什么是 DevSecOps?2022 年的定义、流程、框架和最佳实践
- uniapp---初步使用websocket(长链接实现)
- Software sharing: the best PDF document conversion tool and PDF Suite Enterprise version sharing | with sharing
- 【OpenCV 例程200篇】218. 多行倾斜文字水印
- 转载:等比数列的求和公式,及其推导过程
- Exercise 7-2 finding the maximum value and its subscript (20 points)
- Hands on deep learning (43) -- machine translation and its data construction
- Talk about scalability
猜你喜欢
leetcode842. Split the array into Fibonacci sequences
Dynamic memory management
今日睡眠质量记录78分
【Day1】 deep-learning-basics
如果不知道這4種緩存模式,敢說懂緩存嗎?
Introduction to extensible system architecture
基于线性函数近似的安全强化学习 Safe RL with Linear Function Approximation 翻译 1
Development guidance document of CMDB
The future education examination system cannot answer questions, and there is no response after clicking on the options, and the answers will not be recorded
The time difference between the past time and the present time of uniapp processing, such as just, a few minutes ago, a few hours ago, a few months ago
随机推荐
uniapp---初步使用websocket(长链接实现)
IPv6 comprehensive experiment
Online troubleshooting
Hands on deep learning (III) -- Torch Operation (sorting out documents in detail)
Container cloud notes
Jianzhi offer 04 (implemented in C language)
Exercise 7-2 finding the maximum value and its subscript (20 points)
Hands on deep learning (44) -- seq2seq principle and Implementation
A little feeling
C language - stack
2. Data type
Hands on deep learning (37) -- cyclic neural network
Talk about scalability
Exercise 7-4 find out the elements that are not common to two arrays (20 points)
VLAN part of switching technology
Map container
Pod management
Latex error: missing delimiter (. Inserted) {\xi \left( {p,{p_q}} \right)} \right|}}
Reprint: summation formula of proportional series and its derivation process
leetcode1-3