English C++ Tutorial

128 replies
Goto Page
To the start Previous 1 2 3 4 5 6 7 Next To the start
28.07.10 11:23:44 am
Up
YellowBanana
BANNED
Offline Off
C++ is cool, asm is cooler, mips sucks, but lua challenges rock
31.07.10 07:54:12 pm
Up
archmage
User
Offline Off
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
We must secure the existence of our people and a future for white children. 14/88
31.07.10 08:28:18 pm
Up
Flacko
User
Offline Off
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
31.07.10 09:37:26 pm
Up
archmage
User
Offline Off
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.
We must secure the existence of our people and a future for white children. 14/88
01.08.10 01:31:00 am
Up
YellowBanana
BANNED
Offline Off
Learn C#, much easier.
01.08.10 01:57:05 am
Up
archmage
User
Offline Off
I want a challenge. Besides I have already put so much time into learning C++.
We must secure the existence of our people and a future for white children. 14/88
01.08.10 03:18:10 am
Up
Lee
Moderator
Offline Off
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)
01.08.10 05:31:16 am
Up
archmage
User
Offline Off
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
We must secure the existence of our people and a future for white children. 14/88
01.08.10 07:41:44 am
Up
Flacko
User
Offline Off
Uh, check Allegro
www.Allegro.cc

There is also a pack avaiable for download for Dev-C++.
Tutorial: http://www.cppgameprogramming.com/
01.08.10 02:27:53 pm
Up
DannyDeth
User
Offline Off
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.
01.08.10 02:30:57 pm
Up
YellowBanana
BANNED
Offline Off
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.
01.08.10 03:49:30 pm
Up
stealth
User
Offline Off
A real programmer does not use IDEs!

They just consume all your RAM while coding.
01.08.10 04:20:57 pm
Up
DRoNe
User
Offline Off
What for language is more useful, easier ... ? C or C++ ?
IMG:http://img39.imageshack.us/img39/567/drnatimg.png
01.08.10 04:23:20 pm
Up
YellowBanana
BANNED
Offline Off
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..
01.08.10 04:59:13 pm
Up
Flacko
User
Offline Off
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
01.08.10 07:52:29 pm
Up
archmage
User
Offline Off
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
We must secure the existence of our people and a future for white children. 14/88
06.08.10 11:44:01 pm
Up
YellowBanana
BANNED
Offline Off
Get Visual Studio 2008 or 2010.
07.08.10 10:06:29 pm
Up
Flacko
User
Offline Off
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.
07.08.10 11:25:06 pm
Up
Lee
Moderator
Offline Off
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.
11.08.10 12:21:33 am
Up
archmage
User
Offline Off
I am now using VC++ 2010 (I have it registered) so how do I make a GUI (maybe wxWidgets) to work with it?
We must secure the existence of our people and a future for white children. 14/88
To the start Previous 1 2 3 4 5 6 7 Next To the start