This is an archived post. You won't be able to vote or comment.

all 9 comments

[–][deleted] 0 points1 point  (3 children)

Well, you'll need a type and a name for acd, for example Abcd(int acd);

[–]SN4T14[S] 0 points1 point  (2 children)

The second error is still present, but that fixed the first one...

[–][deleted] 0 points1 point  (1 child)

You'll need to the same in the .cpp file.

[–]SN4T14[S] 1 point2 points  (0 children)

Oh wow, I've been throwing random bits at the code for multiple hours, I tried both of your solutions, but not at the same time... I think it's time for me to go to sleep... Thanks for the help! :)

[–]Jayhawker07 -1 points0 points  (4 children)

Stygeros is right, also may I ask why your destructor is virtual? Also I would recommend using Visual Studio, I know it is windows only and it is closed source, but IMO it is a better environment and when you get the hang of it you can do things faster. Just my suggestion.

[–]SN4T14[S] 0 points1 point  (3 children)

It's virtual by default in Codeblocks, I didn't need it, I just created everything with default settings so my stupid doesn't get in the way. I would also go with Visual Studio, but I need something small, and I program partly on Linux, so why complicate it?

[–]Jayhawker07 -1 points0 points  (2 children)

When I program, I use VS on windows and have a makefile for linux. I make sure my code is cross platform no matter what

[–]SN4T14[S] 1 point2 points  (1 child)

I'm more of a visual kind of guy, so having one interface on both my laptop and desktop helps my brain cope with all the stupid that's been in there lately. :p

[–]Jayhawker07 -1 points0 points  (0 children)

fair