⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 exr10_9.c

📁 Software Development in C: A Practical Approach to Programming and Design 软件开发:编程与设计(C))——国外经典教材·计
💻 C
字号:
//-----------------------------------------------
// Include Files
//-----------------------------------------------

#include <stdio.h>
#include <stdlib.h>

//End Include Files------------------------------



//-----------------------------------------------
// Constants
//-----------------------------------------------

const int ARRAY_LENGTH = 100;

//End Constants----------------------------------



int main()
{
	int i, integerArray[ARRAY_LENGTH];
	int currentMax;

	// Fill the array with random integers.
	// For each array element...
	for (i=0;i<ARRAY_LENGTH;i++)
	{
		/* Generate a random integer and store
		it in the array. */
		integerArray[i]=rand();
	}

	currentMax=0;

	// For each array element...
		/* If the array element is greater than 
		the current maximum... */
			/* Set the current maximum to the 
			value in the array element. */

	return (0);
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -