Mail Archives: djgpp/2002/07/23/17:22:51
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
- Raw text -