🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #9570

How to determine the Number of Elements in an Array?

#9570
From: PC Hua
Date: Mon, 05 Jul 2004 01:49
11 lines
1083 bytes
I have something like...
   std::string	SomeStr[]={"a","b","c"};
I want to run through all elements. How can I get the size of the list 
(number of elements)?

thanks
Phuoc Can HUA

-- 
_/\__/\__/\__/\__/\__/\_
www.folksfun.com
Technical Details
Message-ID: <opsam505lcpmxkmr@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,befc51f674d02011,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: How to determine the Number of Elements in an Array?
From: PC Hua <home-AT-huaonline.DOT.com>
Content-Type: text/plain; format=flowed; charset=iso-8859-15
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Date: Mon, 05 Jul 2004 11:49:43 +1000
Message-ID: <opsam505lcpmxkmr@newsgroups.borland.com>
User-Agent: Opera7.21/Win32 M2 build 3218
NNTP-Posting-Host: 203.194.21.162
X-Trace: newsgroups.borland.com 1088992187 203.194.21.162 (4 Jul 2004 18:49:47 -0700)
Lines: 11
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail