当前位置:网站首页>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;
}
边栏推荐
- 【Day1】 deep-learning-basics
- Exercise 9-3 plane vector addition (15 points)
- Exercise 7-2 finding the maximum value and its subscript (20 points)
- Evolution from monomer architecture to microservice architecture
- uniapp 小于1000 按原数字显示 超过1000 数字换算成10w+ 1.3k+ 显示
- Basic data types of MySQL
- For programmers, if it hurts the most...
- Dynamic address book
- Reasons and solutions for the 8-hour difference in mongodb data date display
- Differences among opencv versions
猜你喜欢

C language - stack

For programmers, if it hurts the most...

Occasional pit compiled by idea

Custom type: structure, enumeration, union

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

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

DDL statement of MySQL Foundation

Dynamic memory management

Four characteristics and isolation levels of database transactions

Today's sleep quality record 78 points
随机推荐
Number of relationship models
Latex learning insertion number - list of filled dots, bars, numbers
Legion is a network penetration tool
【Day2】 convolutional-neural-networks
MySQL case
有老师知道 继承RichSourceFunction自定义读mysql怎么做增量吗?
Development guidance document of CMDB
Button wizard business running learning - commodity quantity, price reminder, judgment Backpack
2. Data type
From programmers to large-scale distributed architects, where are you (2)
System.currentTimeMillis() 和 System.nanoTime() 哪个更快?别用错了!
What is an excellent architect in my heart?
MongoDB数据日期显示相差8小时 原因和解决方案
RHCE - day one
Latex arranges single column table pictures in double column format articles
Dos:disk operating system, including core startup program and command program
Press the button wizard to learn how to fight monsters - identify the map, run the map, enter the gang and identify NPC
【OpenCV 例程200篇】218. 多行倾斜文字水印
Application of safety monitoring in zhizhilu Denggan reservoir area
Exercise 9-3 plane vector addition (15 points)