|
|
|
|
|
August 8th, 2006, 06:27 PM
|
|
Shrapnel Fanatic
|
|
Join Date: Mar 2003
Location: CHEESE!
Posts: 10,009
Thanks: 0
Thanked 7 Times in 1 Post
|
|
Re: OT: Stupid c++
Erm, the pointer is one of the variables in the base class. I'm restarting the roguelike project, only mucho simpler.
The relavent lines:
Quote:
class GR {
BlankSquare MapBlank; WallSquare MapWall; FloorSquare MapFloor;
};
class MapSquare {
public:
BlankSquare * Type;
};
MapSquare Map [81][41];
Map [t][t2].Type = GR.MapWall;
|
__________________
If I only could remember half the things I'd forgot, that would be a lot of stuff, I think - I don't know; I forgot!
A* E* Se! Gd! $-- C-^- Ai** M-- S? Ss---- RA Pw? Fq Bb++@ Tcp? L++++
Some of my webcomics. I've got 400+ webcomics at Last count, some dead.
Sig updated to remove non-working links.
|
August 8th, 2006, 07:46 PM
|
|
Shrapnel Fanatic
|
|
Join Date: Mar 2003
Location: CHEESE!
Posts: 10,009
Thanks: 0
Thanked 7 Times in 1 Post
|
|
Re: OT: Stupid c++
*Whaps forehead*
Must remember...A class is *Not* a variable. Must declare class as variable first.
Well, at least I changed the error...Er, never mind. Putting '&' in front of what I wanted to convert fixed it. And now it all works. Or seems to. Can never tell with those programs. *Darting eyes* Sneaky programs.
__________________
If I only could remember half the things I'd forgot, that would be a lot of stuff, I think - I don't know; I forgot!
A* E* Se! Gd! $-- C-^- Ai** M-- S? Ss---- RA Pw? Fq Bb++@ Tcp? L++++
Some of my webcomics. I've got 400+ webcomics at Last count, some dead.
Sig updated to remove non-working links.
|
August 8th, 2006, 08:35 PM
|
|
Shrapnel Fanatic
|
|
Join Date: Mar 2003
Location: CHEESE!
Posts: 10,009
Thanks: 0
Thanked 7 Times in 1 Post
|
|
Re: OT: Stupid c++
I'm getting aa '[Linker error] undefined reference to `vtable for Character' '
Ok, so it doesn't like virtual functions without a '{};', even if they are void.
__________________
If I only could remember half the things I'd forgot, that would be a lot of stuff, I think - I don't know; I forgot!
A* E* Se! Gd! $-- C-^- Ai** M-- S? Ss---- RA Pw? Fq Bb++@ Tcp? L++++
Some of my webcomics. I've got 400+ webcomics at Last count, some dead.
Sig updated to remove non-working links.
|
August 8th, 2006, 10:25 PM
|
|
Shrapnel Fanatic
|
|
Join Date: Mar 2003
Location: CHEESE!
Posts: 10,009
Thanks: 0
Thanked 7 Times in 1 Post
|
|
Re: OT: Stupid c++
Got a dungeon, got doors that open and close, got an intermitent glitch in the dungeon algorithm...
Would anybody know how to turn on Dev c++'s Debug mode? I'm getting nowhere with 'F8'.
__________________
If I only could remember half the things I'd forgot, that would be a lot of stuff, I think - I don't know; I forgot!
A* E* Se! Gd! $-- C-^- Ai** M-- S? Ss---- RA Pw? Fq Bb++@ Tcp? L++++
Some of my webcomics. I've got 400+ webcomics at Last count, some dead.
Sig updated to remove non-working links.
|
August 9th, 2006, 06:21 AM
|
|
Sergeant
|
|
Join Date: Apr 2004
Location: Forlì, Italy
Posts: 322
Thanks: 15
Thanked 0 Times in 0 Posts
|
|
Re: OT: Stupid c++
Ehm ...
Why don't use Phython?
Or, at least, Java?
Or, if you love M$, C#?
I programmed 10 years in C and C++ and it's an headhache.
|
August 9th, 2006, 09:57 AM
|
|
First Lieutenant
|
|
Join Date: May 2005
Location: Outter Glazbox
Posts: 760
Thanks: 12
Thanked 4 Times in 4 Posts
|
|
Re: OT: Stupid c++
This explains all the nomenclature in your posts!
|
August 9th, 2006, 10:29 AM
|
|
General
|
|
Join Date: Mar 2001
Location: UK
Posts: 4,245
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: OT: Stupid c++
Don't suppose it happens to be an SE4-themed roguelike does it?
The Phong wields a hand cannon --more--
The Phong fires at you --more--
You die
That would be cool...
|
August 9th, 2006, 11:16 AM
|
|
General
|
|
Join Date: Apr 2001
Location: Cincinnati, Ohio, USA
Posts: 4,547
Thanks: 1
Thanked 7 Times in 5 Posts
|
|
Re: OT: Stupid c++
Yeah, I wanted to do an SE module for Dungeon Odyssey once, but it never got anywhere... DO seemed a bit tricky to mod, and I couldn't figure out where to start with the concept anyway
__________________
The Ed draws near! What dost thou deaux?
|
August 9th, 2006, 12:38 PM
|
|
Shrapnel Fanatic
|
|
Join Date: Mar 2003
Location: CHEESE!
Posts: 10,009
Thanks: 0
Thanked 7 Times in 1 Post
|
|
Re: OT: Stupid c++
Python is interpreted, java is interpreted, I have an aversion to M$-only projects.
No, just a simple dungeon-based one.
I would perfer this thread not go off-topic before I get an answer.
__________________
If I only could remember half the things I'd forgot, that would be a lot of stuff, I think - I don't know; I forgot!
A* E* Se! Gd! $-- C-^- Ai** M-- S? Ss---- RA Pw? Fq Bb++@ Tcp? L++++
Some of my webcomics. I've got 400+ webcomics at Last count, some dead.
Sig updated to remove non-working links.
|
August 9th, 2006, 02:03 PM
|
|
Shrapnel Fanatic
|
|
Join Date: Mar 2003
Location: CHEESE!
Posts: 10,009
Thanks: 0
Thanked 7 Times in 1 Post
|
|
Re: OT: Stupid c++
What's a good, simple way to get the console to ignore the mouse? I'm using this: http://www.adrianxw.dk/SoftwareSite/index.html for events.
__________________
If I only could remember half the things I'd forgot, that would be a lot of stuff, I think - I don't know; I forgot!
A* E* Se! Gd! $-- C-^- Ai** M-- S? Ss---- RA Pw? Fq Bb++@ Tcp? L++++
Some of my webcomics. I've got 400+ webcomics at Last count, some dead.
Sig updated to remove non-working links.
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
|
|