Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!killer!pollux!dalsqnt!usl!pcb From: pcb@usl.usl.edu (Peter C. Bahrs) Newsgroups: comp.lang.c++ Subject: Is a struct a class? Keywords: struct, class, object, c++ Message-ID: <449@usl.usl.edu> Date: 8 Oct 88 02:21:14 GMT Organization: CACS, Lafayette, LA, USA Lines: 16 From the readings, I was under the impression that a struct in C++ is a class. So given: class { struct X { int a; int b; } * X; // and some more stuff } The statement: X = new X; bombs in AT&T C++ on 3B2/Sys V. Any comments? Thanks in advance.