Post view

C++ 物件導向程式設計:incldemo.cpp、brent.h、CONVAMI.H、CONVWORD.H

// File Name : incldemo.cpp
#include <brent.h>

void func();

void main()
{
  int a = 10;
  int huge *p = &a;

  cout << "Hello !\n";
  cout << sizeof(p) << *p;
  func();
}

/*  brent.h -- Brent header declarations

    Copyright (c) 1990, 1994 by Jackie International
    All rights reserved.

    Write by Brent Su.   15/10/94

    declarations symbol :

    _NO_STRING_
    _SYSTEM_H_
    _TIME_H_
    _MATH_H_
    _GRAPHICS_H_
    _ALL_H_
*/

#ifdef __cplusplus
   #include <iostream.h>
   #include <iomanip.h>
/*   #include <constrea.h>  for Borland C++ 3.1   */
   #include <fstream.h>
#endif

#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <conio.h>
#include <alloc.h>

#ifdef _ALL_H_
   #ifdef __cplusplus
      #include <complex.h>
      #include <bcd.h>
   #endif
   #include <string.h>
   #include <ctype.h>
   #include <dos.h>
   #include <bios.h>
   #include <dir.h>
   #include <io.h>
   #include <fcntl.h>
   #include <setjmp.h>
   #include <time.h>
   #include <math.h>
   #include <float.h>
   #include <time.h>
   #include <graphics.h>
   #include <sys\timeb.h>
   #include <sys\types.h>
   #include <sys\stat.h>
#else
   #ifndef _NO_STRING_
      #include <string.h>
      #include <ctype.h>
   #endif
   #ifdef _SYSTEM_H_
      #include <dos.h>
      #include <bios.h>
      #include <dir.h>
      #include <io.h>
      #include <fcntl.h>
      #include <setjmp.h>
      #include <sys\types.h>
      #include <sys\stat.h>
   #endif
   #ifdef _TIME_H_
      #include <time.h>
      #include <sys\timeb.h>
   #endif
   #ifdef _MATH_H_
      #ifdef __cplusplus
         #include <complex.h>
         #include <bcd.h>
      #endif
      #include <math.h>
      #include <float.h>
      #include <time.h>
   #endif
   #ifdef _GRAPHICS_H_
      #include <graphics.h>
   #endif
#endif

//CONVAMI.H

//const char version[] = "Convert Text File to Ami Pro ASCII Version 2.0 1994  by Jackie Su.";
/*
const char *helps[] = { "Syntax  :  CONVAMI SourceFiles",
                        "Example :  convami ch1.txt",
                        "Example :  convami ch?.txt" };

char extend[80] = ".AMI";
char style[90][15] = { "<Body Text>",    // code = 0
                       "<本文與實例>",   // code = 1 Body Text 之後有實例說明
                       "<說明敘述>",     // code = 2 全部內凹對齊的說明文字
                       "<說明縮排>",     // code = 3 內凹且首段內凹的說明文字
                       "<說明與實例>",   // code = 4 說明之後有實例介紹
                       "<重點說明>",     // code = 5
                       "<重點與實例>",   // code = 6
                       "<匯入圖形>",     // code = 7
                       "<操作說明>",     // code = 8
                       "<執行結果>",     // code = 9
                       "<程式列表>",     // code = 10
                       "<註解文字>",     // code = 11
                       "<附註文字>",     // code = 12
                       "<附註參照>",     // code = 13
                       "<註腳文字>",     // code = 14
                       "<註腳參照>",     // code = 15
                       "<螢幕文字>",     // code = 16
                       "",               // code = 17
                       "",               // code = 18
                       "",               // code = 19
                       "<章節名稱>",     // code = 20
                       "<小節名稱>",     // code = 21
                       "<次小節名稱>",   // code = 22
                       "<主標題>",       // code = 23
                       "<次標題>",       // code = 24
                       "<小標題>",       // code = 25
                       "",              // code = 26
                       "",              // code = 27
                       "",              // code = 28
                       "<重點說明0>",    // code = 29
                       "<重點說明1>",    // code = 30
                       "<重點說明2>",    // code = 31
                       "<重點說明3>",    // code = 32
                       "<重點說明4>",    // code = 33
                       "<重點說明5>",    // code = 34
                       "<重點說明6>",    // code = 35
                       "<重點說明7>",    // code = 36
                       "<重點說明8>",    // code = 37
                       "<重點說明9>",    // code = 38
                       "<重點說明10>",   // code = 39
                       "<重點說明11>",   // code = 40
                       "<重點說明12>",   // code = 41
                       "<重點說明13>",   // code = 42
                       "<重點說明14>",   // code = 43
                       "<重點說明15>",   // code = 44
                       "<重點說明16>",   // code = 45
                       "<重點說明17>",   // code = 46
                       "<重點說明18>",   // code = 47
                       "<重點說明19>",   // code = 48
                       "<重點說明20>",   // code = 49
                       "<標題1>",        // code = 50
                       "<標題2>",        // code = 51
                       "<標題3>",        // code = 52
                       "<標題4>",        // code = 53
                       "<標題5>",        // code = 54
                       "<標題6>",        // code = 55
                       "<標題7>",        // code = 56
                       "<標題8>",        // code = 57
                       "<標題9>",        // code = 58
                       "<標題10>",       // code = 59
                       "<索引1>",        // code = 60
                       "<索引2>",        // code = 61
                       "<索引3>",        // code = 62
                       "<索引4>",        // code = 63
                       "<索引5>",        // code = 64
                       "<索引6>",        // code = 65
                       "<索引7>",        // code = 66
                       "<索引8>",        // code = 67
                       "<索引9>",        // code = 68
                       "<索引10>",       // code = 69
                       "<索引標題>",     // code = 70
                       "",               // code = 71
                       "",               // code = 72
                       "",               // code = 73
                       };

*/

//CONVWORD.H

const char version[] = "Convert Text File to Word ASCII Version 2.0 1994  by Jackie Su.";
const char *helps[] = { "Syntax  :  CONVWORD SourceFiles",
                        "Example :  convword ch1.txt",
                        "Example :  convword ch?.txt" };

char extend[80] = ".WRD";
char style[90][15] = { "", // "<Body Text>",    // code = 0
                       "", // "<本文與實例>",   // code = 1 Body Text 之後有實例說明
                       "", // "<說明敘述>",     // code = 2 全部內凹對齊的說明文字
                       "", // "<說明敘述2>",    // code = 3 內凹且首段內凹的說明文字
                       "", // "<說明與實例>",   // code = 4 說明之後有實例介紹
                       "", // "<重點說明>",     // code = 5
                       "", // "<重點與實例>",   // code = 6
                       "", // "<匯入圖形>",     // code = 7
                       "", // "<操作說明>",     // code = 8
                       "", // "<執行結果>",     // code = 9
                       "", // "<程式列表>",     // code = 10
                       "", //"<註解文字>",     // code = 11
                       "",               // code = 12
                       "",               // code = 13
                       "",               // code = 14
                       "",               // code = 15
                       "",               // code = 16
                       "",               // code = 17
                       "",               // code = 18
                       "",               // code = 19
                       "", // "<章節名稱>",     // code = 20
                       "", // "<小節名稱>",     // code = 21
                       "", // "<次小節名稱>",   // code = 22
                       "", // "<主標題>",       // code = 23
                       "", // "<次標題>",       // code = 24
                       "", // "<小標題>",       // code = 25
                       ""
                       };

蘇言霖 2013/09/11 0 4830
Comments
Order by: 
Per page:
 
  • There are no comments yet
Rate
0 votes
Post info
蘇言霖
「超級懶貓級」社群網站站長
Actions