Slimelite BBS

pascal to c++; marilyn manson rule!..

Back to EMULATE

From Corey Cahill · 1996-03-29 09:32 · #73500 in EMULATE

to anyone who gives a damn:

i am new to c++ and used to pascal..i am just wondering if anybodycan tell me
the c++ equivilents to the following pascal procs/funcs/whatever:

  ptr()        (p:=ptr($a000,$0320); {p=pointer})
  new()        (new(p);)
  dispose()    (dispose(p);)
  getmem()     (getmem(p,1);)
  freemem()    (freemem(p,1);)

  absolute     (var b : byte absolute $b800:0080;)

  pointer      (var p : pointer; {think this is same as "void *p;")
  boolean      (is there one?)
  pchar        (think this is same as "char *x;")

  ^variable    (is this the same as "<type> *<var>"?)

also, how do i link .obj files into c++ proggys..and finally..how would i go
about making a .tpu equivilent in c++?..(.lib's?..if so..how?)..

thanx..and lates..c! (expect more questions in the near future..<g>)..

~~~ TGWave v1.13 Beta-02+
--- Telegard v2.99.b23 [ml]
 * Origin: Battle Zone Systems <*> ONTARIO <*> 1-905-715-7963 (1:259/900)