当前位置:网站首页>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;
}
边栏推荐
- Reprint: summation formula of proportional series and its derivation process
- 按键精灵打怪学习-识别所在地图、跑图、进入帮派识别NPC
- 183 sets of free resume templates to help everyone find a good job
- When I forget how to write SQL, I
- Talk about scalability
- 【OpenCV 例程200篇】218. 多行倾斜文字水印
- Intelligent gateway helps improve industrial data acquisition and utilization
- Work order management system OTRs
- Realsense d435 d435i d415 depth camera obtains RGB map, left and right infrared camera map, depth map and IMU data under ROS
- What is devsecops? Definitions, processes, frameworks and best practices for 2022
猜你喜欢
随机推荐
用数据告诉你高考最难的省份是哪里!
Hands on deep learning (37) -- cyclic neural network
Introduction to extensible system architecture
MySQL case
[200 opencv routines] 218 Multi line italic text watermark
C language structure to realize simple address book
Collection of practical string functions
How to teach yourself to learn programming
What is an excellent architect in my heart?
Servlet基本原理与常见API方法的应用
Ruby时间格式转换strftime毫秒匹配格式
Debug:==42==ERROR: AddressSanitizer: heap-buffer-overflow on address
MySQL develops small mall management system
Rhcsa day 10 operation
Histogram equalization
If you don't know these four caching modes, dare you say you understand caching?
What is devsecops? Definitions, processes, frameworks and best practices for 2022
Rhcsa learning practice
Whether a person is reliable or not, closed loop is very important
Differences among opencv versions