TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: JOSHUA BOEHME
from: HERBERT BUSHONG
date: 1997-04-21 09:42:00
subject: Pointer Arrays

::> int pointer;
 should be:
int *pointer[2];
since you want an array of 2 pointers to int.
::> pointer = new *int[2];            // These are the 3
remove this, the first line handles it.
::> pointer[0] = new int[total[0]];   // bad lines
::> pointer[1] = new int[total[1]];   //
now this should work as expected.
#  Herbert Bushong    harchon@centuryinter.net       [TEAM OS/2]    
-  Blackbeard's BBS   Intelec: 239:600/0            
+  Fido: 1:19/19      http://www.win.net/eunicecity/stltcc/hbush/
---
   RM 1.31 2508   Cool Dude!
---------------
* Origin: Blackbeard's BBS - Ville Platte, LA - 318-468-3385 (1:19/19)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.