home *** CD-ROM | disk | FTP | other *** search
/ For Beginners & Professional Hackers / cd.iso / softcrc / tasm / tasm.4_0 / usrguide.pak / SHOWTOT.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-01  |  508 b   |  25 lines

  1. /* Turbo Assembler example. Copyright (c) 1993 By Borland International, Inc.
  2.  
  3.    SHOWTOT.CPP
  4.    The program provides external data to DOTOTAL.ASM
  5.  
  6.    Usage: bcc showtot.cpp dototal.asm
  7.  
  8.    From the Turbo Assembler User's Guide 
  9.    Ch. 18: Interfacing Turbo Assembler with Borland C++
  10. */
  11. #include <stdio.h>
  12.  
  13. extern "C" int DoTotal(void);
  14.  
  15. extern int StartingValue;
  16.  
  17. int Repetitions;
  18. int main()
  19. {
  20.    Repetitions = 10;
  21.    StartingValue = 2;
  22.    printf("%d\n", DoTotal());
  23.    return 0;
  24. }
  25.