Forum

> > Off Topic > C++ Tutorial
Forums overviewOff Topic overviewLog in to reply

English C++ Tutorial

128 replies
Page
To the start Previous 1 2 3 4 5 6 7 Next To the start

old Re: C++ Tutorial

archmage
User Off Offline

Quote
I think I understand OOP now
But I have a problem with inheritance
More >

I get an error "in constructor fin::fin() int temp::x is private",but they are supposed to be friends.

Edit:
I am having trouble installing OGRE and Irrlicht and every other Game or Graphics Engine. I always get errors.
edited 1×, last 31.07.10 08:05:28 pm

old Re: C++ Tutorial

Flacko
User Off Offline

Quote
Friends don't share private members, you should use protected instead.

Do you get errors such as "undefined reference to xyz"?
If so, you must link your project with the libraries (Alt+P->Parameters->Linker-> write -lirrlicht)
I think it was -lirrlicht, don't remember right now, but it should be called something like that

old Re: C++ Tutorial

archmage
User Off Offline

Quote
Yes it is Irrlicht, but I have followed tutorials that show the same as you and they don't help.

private members of a class are accessible only from within other members of the same class or from their friends.
protected members are accessible from members of their same class and from their friends, but also from members of their derived classes.
Finally, public members are accessible from anywhere where the object is visible.

old Re: C++ Tutorial

archmage
User Off Offline

Quote
I want a challenge. Besides I have already put so much time into learning C++.

old Re: C++ Tutorial

Lee
Moderator Off Offline

Quote
If you need to link via -l, you might need to supply the full path to the static irrlicht library (.lib or in certain cases, .a)

old Re: C++ Tutorial

archmage
User Off Offline

Quote
Hm well does anyone know of a 2D engine?
Edit:
How to add Scintilla to C++ I cant find a header file for it.
edited 1×, last 01.08.10 07:41:33 am

old Re: C++ Tutorial

DannyDeth
User Off Offline

Quote
Dark Byte has written
Know any good IDEs (C++)?


IDE's are over rated, rather use something like Notepad++, it has support for many programming languages. I use it for all my coding, except when I'm coding in assembly, coz it doesn't have any syntax for that Pityy, pitty...

But other wise it's great, IDE's are HUGE cap wasters when you download them, and they also hog ur HDD. Rather go the text route, you'll wonder why you eer thought of IDE's.

old Re: C++ Tutorial

YellowBanana
BANNED Off Offline

Quote
Not true, with the help of Intellisense in Visual Studio 2010, i can write programs very fast. Maybe it's the case for simple scripting languages like lua or python, but definitly not for C#. .NET library is so huge, and it's good to be able to look things up quickly with IntelliSense.

old Re: C++ Tutorial

stealth
User Off Offline

Quote
A real programmer does not use IDEs!

They just consume all your RAM while coding.

old Re: C++ Tutorial

DRoNe
User Off Offline

Quote
What for language is more useful, easier ... ? C or C++ ?

old Re: C++ Tutorial

YellowBanana
BANNED Off Offline

Quote
Yeah, IDE's consume RAM , so?
A good IDE will make your life easier with coding.

You might double your programming speed. I'd "waste" a bit of RAM for that..

old Re: C++ Tutorial

Flacko
User Off Offline

Quote
If your project is too big you will surely go crazy compiling all the source files passing it as parameters to the compiler one by one without an IDE.

Dev-C++ has support for the dev packs so you won't have to be looking over the internet for a library that then you will have to compile and then you will have to manually put the files in the right folders.

Also, they are not so big to be a waste in your hard disk, my dev-c++ is less than 150MB counting a few libraries that I've downloaded and the compilers I've installed (MingW32 and Cygwin), and the setup of Code::Blocks with MingW included is 70mb

old Re: C++ Tutorial

archmage
User Off Offline

Quote
stealth has written
A real programmer does not use IDEs!

They just consume all your RAM while coding.

OMFG! People with shit computers don't use IDEs. A real programmer would use what ever is fastest and easiest for him.
Edit:
IDEs are irrelevant I am learning C++. I don't care of your opinion on IDEs.

Edit:
GAH!! WTF am I doing wrong? I downloaded wxDev-C++ with all packages libraries etc AND IT WONT FUCKING WORK! I am using examples so it is not just an error in syntax or something. Help me.
edited 2×, last 06.08.10 11:13:07 pm

old Re: C++ Tutorial

Flacko
User Off Offline

Quote
If it just doesn't compile without throwing errors then it's a problem with the compiler, try pressing the 'Tools' tab then click on compiler options, press the 'Directories' tab and add there the path to your old Dev-C++/bin folder.
Anyways, wxDev is still too buggy.

old Re: C++ Tutorial

Lee
Moderator Off Offline

Quote
What compiler suite are you using with wxDev-C++? If the IDE itself doesn't automatically configure the include paths, you may need to supply them yourself.

old Re: C++ Tutorial

archmage
User Off Offline

Quote
I am now using VC++ 2010 (I have it registered) so how do I make a GUI (maybe wxWidgets) to work with it?
To the start Previous 1 2 3 4 5 6 7 Next To the start
Log in to replyOff Topic overviewForums overview