X-Originating-IP: [195.163.77.104] From: "Whisky Bob" To: djgpp AT delorie DOT com Subject: User Defined Variabels Date: Tue, 23 Jul 2002 21:40:20 +0200 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 23 Jul 2002 19:40:21.0495 (UTC) FILETIME=[C8264870:01C23280] Reply-To: djgpp AT delorie DOT com Hi DJ! Do you remember me, im the guy that couldent make his compile work. But i found the problem, you just name your source-code files xxxxx.cpp, and the borland compiler treats them like c++ files, not c!! So now im working on my first project, Bogart Hunter! Its a adventure/RPG in 100% DOS-text(i dont know any windows commands to implement graphics, sound, TCP/IP protocols etc.). In my first version, every location, item ,creature etc was its own function. If i wanted to make a new function, like randomly appering cretures all of the world, i had to write TONS of code in EVERY location. So now im making a editor. The editor will be used to create contents like rooms, items, dialog and such, and a separete program - the game itself - to run the created contents. Now i have a problem. In the editor im creating a function that lets the user create locations. Now the problem is, i want to be able to let the user choose names for variabels, vectors and such, but i dont know how to. Is it possible, and if so, how do you do it? ive tryed this: cin >> newvarname; int (newvarname)[10]; but it doesnt work, wich doesnt supprise me. My book is very good but i doesnt mention anything about this. Thanks _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx