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

📄 main.cpp

📁 此为本书配套光盘.本书主要内容包括:微型计算机基础知识、IBM-PC微型计算机系统概述、汇编语言程序设计基本方法、三大结构程序设计、子程序设计、汇编语言程序设计等内容。
💻 CPP
字号:
// main.cpp

// Calls the external LongRandom function, written in
// assembly language, that returns an unsigned 32-bit
// random integer. Compile in the Large memory model.

#include <iostream.h>

extern "C" unsigned long LongRandom();

const int ARRAY_SIZE = 500;

int main()
{
  // Allocate array storage and fill with 32-bit
  // unsigned random integers.
  unsigned long * rArray = new unsigned long[ARRAY_SIZE];
  for(unsigned i = 0; i < ARRAY_SIZE; i++)
  {
    rArray[i] = LongRandom();
    cout << rArray[i] << ',';
  }
  cout << endl;
  return 0;
}

⌨️ 快捷键说明

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