From -8435238647531071210
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,34b2488c88017975,start
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 2001-01-04 17:02:22 PST
Path: supernews.google.com!sn-xit-02!supernews.com!newsfeed.online.be!newsfeeds.belnet.be!news.belnet.be!btnet-peer1!btnet-peer0!btnet!dispose.news.demon.net!demon!news.demon.co.uk!demon!mail2news.demon.co.uk!not-for-mail
From: rizz <westphal@mandli.com>
Newsgroups: comp.std.c++
Subject: struct = struct?
Date: Fri,  5 Jan 2001 01:01:26 GMT
Organization: Mandli Comm
Approved: Fergus Henderson <fjh@cs.mu.oz.au>, moderator of comp.std.c++
Message-ID: <3A54B449.CBCC11BB@mandli.com>
Reply-To: westphal@mandli.com
X-Trace: mail2news.demon.co.uk 978656493 mail2news:17081 mail2news mail2news.demon.co.uk
X-Complaints-To: abuse@demon.net
X-Mail2News-Path: news.demon.net!mulga.cs.mu.oz.au
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-Accept-Language: en
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; x-mac-type="54455854"; x-mac-creator="4D4F5353"
Content-Transfer-Encoding: 7bit
NNTP-Posting-Date: Thu, 04 Jan 2001 11:34:41 CST
Lines: 30
Xref: supernews.google.com comp.std.c++:3195

I'm wondering if it is an ansi standard in C++ to make a structure equal
another structure?

example:

typedef struct myStruct
{
    short a;
    long b;
}myStruct;

myStruct s1, s2;

s1.a = 4;
s1.b = 6;

s2 = s1;

is this assignment an ansi C++ standard?

thanks


---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.research.att.com/~austern/csc/faq.html                ]
[ Note that the FAQ URL has changed!  Please update your bookmarks.     ]



