delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/09/17/18:52:39

From: "Winston Kotzan" <WINZ AT prodigy DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: C++ Class question
Date: Fri, 17 Sep 1999 17:37:43 -0500
Organization: Prodigy Internet http://www.prodigy.com
Lines: 9
Message-ID: <7rufng$1i14$1@newssvr03-int.news.prodigy.com>
NNTP-Posting-Host: chcgb106-41.splitrock.net
X-Trace: newssvr03-int.news.prodigy.com 937607728 3351044 209.156.10.225 (17 Sep 1999 22:35:28 GMT)
X-Complaints-To: abuse AT prodigy DOT net
NNTP-Posting-Date: 17 Sep 1999 22:35:28 GMT
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MSMail-Priority: Normal
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I would like to pass the size of an array to a function.  But the function
is in a class.  I tried using the command:

sizeof(classname.arrayname / sizeof(int));

When I compile with DJGPP, it gives me errors about a parse error before the
"."  Is this a DJGPP problem or am I doing something wrong?


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019