showtot.cpp

来自「汇编&c语言code」· C++ 代码 · 共 25 行

CPP
25
字号
// Turbo Assembler    Copyright (c) 1988, 1991 By Borland International, Inc.

/* SHOWTOT.CPP
   The program provides external data to DOTOTAL.ASM
*/

// From the Turbo Assembler Users Guide - Interfacing Turbo Assembler
//                                         with Borland C++


extern "C" {
extern int DoTotal(void);
}

extern int StartingValue;

int Repetitions;
main()
{
   int i;
   Repetitions = 10;
   StartingValue = 2;
   printf("%d\n", DoTotal());
}

⌨️ 快捷键说明

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