当前位置:网站首页>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;
}
边栏推荐
- Exercise 8-7 string sorting (20 points)
- When I forget how to write SQL, I
- 基于线性函数近似的安全强化学习 Safe RL with Linear Function Approximation 翻译 2
- 2021-08-11 function pointer
- Three schemes of ZK double machine room
- 转载:等比数列的求和公式,及其推导过程
- 入职中国平安三周年的一些总结
- Ruby time format conversion strftime MS matching format
- Exercise 7-2 finding the maximum value and its subscript (20 points)
- If the uniapp is less than 1000, it will be displayed according to the original number. If the number exceeds 1000, it will be converted into 10w+ 1.3k+ display
猜你喜欢

基于线性函数近似的安全强化学习 Safe RL with Linear Function Approximation 翻译 2

Dynamic memory management

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

5g/4g wireless networking scheme for brand chain stores

DCL statement of MySQL Foundation

For programmers, if it hurts the most...

leetcode1-3

Intelligent gateway helps improve industrial data acquisition and utilization

MongoDB数据日期显示相差8小时 原因和解决方案

Tables in the thesis of latex learning
随机推荐
Uniapp--- initial use of websocket (long link implementation)
2021-08-10 character pointer
Lavel document reading notes -how to use @auth and @guest directives in lavel
Container cloud notes
Does any teacher know how to inherit richsourcefunction custom reading Mysql to do increment?
【Day1】 deep-learning-basics
【Day1】 deep-learning-basics
Rhcsa learning practice
A little feeling
Tables in the thesis of latex learning
Number of relationship models
Remove linked list elements
Work order management system OTRs
2021-08-11 function pointer
View CSDN personal resource download details
MongoDB数据日期显示相差8小时 原因和解决方案
Rhcsa day 10 operation
uniapp 小于1000 按原数字显示 超过1000 数字换算成10w+ 1.3k+ 显示
System.currentTimeMillis() 和 System.nanoTime() 哪个更快?别用错了!
Vs201 solution to failure to open source file HPP (or link library file)