Forum

> > Off Topic > C++ Tutorial
ForenübersichtOff Topic-ÜbersichtEinloggen, um zu antworten

Englisch C++ Tutorial

128 Antworten
Seite
Zum Anfang Vorherige 1 2 3 4 5 6 7 Nächste Zum Anfang

alt Re: C++ Tutorial

archmage
User Off Offline

Zitieren
I think I understand OOP now
But I have a problem with inheritance
Mehr >

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.
1× editiert, zuletzt 31.07.10 20:05:28

alt Re: C++ Tutorial

Flacko
User Off Offline

Zitieren
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

alt Re: C++ Tutorial

archmage
User Off Offline

Zitieren
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.

alt Re: C++ Tutorial

archmage
User Off Offline

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

alt Re: C++ Tutorial

Lee
Moderator Off Offline

Zitieren
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)

alt Re: C++ Tutorial

archmage
User Off Offline

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

alt Re: C++ Tutorial

DannyDeth
User Off Offline

Zitieren
Dark Byte hat geschrieben
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.

alt Re: C++ Tutorial

YellowBanana
BANNED Off Offline

Zitieren
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.

alt Re: C++ Tutorial

stealth
User Off Offline

Zitieren
A real programmer does not use IDEs!

They just consume all your RAM while coding.

alt Re: C++ Tutorial

YellowBanana
BANNED Off Offline

Zitieren
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..

alt Re: C++ Tutorial

Flacko
User Off Offline

Zitieren
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

alt Re: C++ Tutorial

archmage
User Off Offline

Zitieren
stealth hat geschrieben
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.
2× editiert, zuletzt 06.08.10 23:13:07

alt Re: C++ Tutorial

Flacko
User Off Offline

Zitieren
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.

alt Re: C++ Tutorial

Lee
Moderator Off Offline

Zitieren
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.

alt Re: C++ Tutorial

archmage
User Off Offline

Zitieren
I am now using VC++ 2010 (I have it registered) so how do I make a GUI (maybe wxWidgets) to work with it?
Zum Anfang Vorherige 1 2 3 4 5 6 7 Nächste Zum Anfang
Einloggen, um zu antwortenOff Topic-ÜbersichtForenübersicht