Article View: borland.public.jbuilder.java.language
Article #7986How does a Java CLASS replace a C++ STRUCT?
From: John Pruitt
Date: Mon, 07 May 2001 17:36
Date: Mon, 07 May 2001 17:36
20 lines
1433 bytes
1433 bytes
Can someone please explain how a Java class replaces a C++ struct when it comes to complex data structures.
ie:
struct test {
int qType;
int qVers;
int qMem;
struct {
char sType;
char sDesc[17];
int sValue;
} ss[10];
int qfinal;
};
I've tried every way I can think of to use a class instead of a struct, but can't find any way to define an
array of [10] class "ss" within class "test" and actually make it work the same as a stuct within a struct
does in C++.
John
Technical Details
Message-ID:
<3af6dd31$1_2@dnews>Path:
arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-03!supernews.com!cyclone2.usenetserver.com!news-out.usenetserver.com!feed2.onemain.com!feed1.onemain.com!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnewsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,f48c7921166a8f24,start X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-05-07 10:56:06 PST From: "John Pruitt" <john@branchsoft.com> Sender: "John Pruitt" <john@branchsoft.com> Reply-To: "John Pruitt" <john@branchsoft.com> Subject: How does a Java CLASS replace a C++ STRUCT? Newsgroups: borland.public.jbuilder.java.language X-User-Info: 64.242.221.201 64.242.221.201 NNTP-Posting-Host: 207.105.83.65 Message-ID: <3af6dd31$1_2@dnews> Date: 7 May 2001 10:36:49 -0700 X-Trace: dnews 989257009 207.105.83.65 (7 May 2001 10:36:49 -0700) Lines: 20 Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-03!supernews.com!cyclone2.usenetserver.com!news-out.usenetserver.com!feed2.onemain.com!feed1.onemain.com!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews