📄 main.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 + -