From: "John" Newsgroups: comp.os.msdos.djgpp Subject: classes Lines: 18 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Message-ID: Date: Sun, 02 Apr 2000 17:14:50 GMT NNTP-Posting-Host: 24.95.139.17 X-Complaints-To: abuse AT stny DOT rr DOT com X-Trace: typhoon.nyroc.rr.com 954695690 24.95.139.17 (Sun, 02 Apr 2000 13:14:50 EDT) NNTP-Posting-Date: Sun, 02 Apr 2000 13:14:50 EDT Organization: Time Warner Road Runner - Binghamton NY To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I'm new to classes, Is the anyway that I would be able to do this? class myClass { // there would be things here }; int main(void) { char stuff[20]; cin>>stuff; myClass stuff; // I want to name it the string // stored in stuff not the word stuff return 0; } thanks