home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c081_11 / 9.ddi / CHAPXMPL.ZIP / SHOWTOT.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1991-02-13  |  487 b   |  25 lines

  1. // Turbo Assembler    Copyright (c) 1988, 1991 By Borland International, Inc.
  2.  
  3. /* SHOWTOT.CPP
  4.    The program provides external data to DOTOTAL.ASM
  5. */
  6.  
  7. // From the Turbo Assembler Users Guide - Interfacing Turbo Assembler
  8. //                                         with Borland C++
  9.  
  10.  
  11. extern "C" {
  12. extern int DoTotal(void);
  13. }
  14.  
  15. extern int StartingValue;
  16.  
  17. int Repetitions;
  18. main()
  19. {
  20.    int i;
  21.    Repetitions = 10;
  22.    StartingValue = 2;
  23.    printf("%d\n", DoTotal());
  24. }
  25.