Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Looking for more info on c++

Name: Anonymous 2010-12-13 16:31

I've spent a bit of time messing in c++, working on expanding my knowledge of the language now I've finished at uni. I wrote a bit of a windows program, then started a new project in two different IDEs and compiled them. The compiled programs then behaved differently.

There's evidently something else going on under the lid, but I've never encountered anything about these things in books on coding c++ and such. Is there any good tutorials or just general documentation that explains things in more depth?

Name: Anonymous 2010-12-13 16:32

Don't use C++.

Name: Anonymous 2010-12-13 18:11

>>2
What he said.

Name: Anonymous 2010-12-13 18:17

Some good guide for C++ are
http://newdata.box.sk/bx/c/index.htm
and
http://www.cplusplus.com/doc/tutorial/

The first one explains what the compiler is doing sometimes

Name: Anonymous 2010-12-13 18:21

http://yosefk.com/c++fqa/
This is a nice guide too

Name: Anonymous 2010-12-13 18:24

>>1
see >>2-3,5

Name: Anonymous 2010-12-13 18:37

Don't use C++.
youre safer starting out with C if you want to be self taught, the minor disadvantages that when you move on to C++ you will have to relearn the parts that are redundant with C. C++ books fall into 2 categories, they are either junk or very subtle. A book like Accelerated C++ reads very easy, like its just another run of the mill beginners book, but you wont catch on to whats really being taught unless you have a firm grasp on object orientation and memory management. The same goes for introductory C++ courses offered in community colleges, these courses are often taught on a simple superficial level that will only teach basic syntax constructs, but not the knowledge you need to use the language at its full potential. This is why only people who get CS degrees really learn C++.

Name: Anonymous 2010-12-13 19:03

>>2
Enjoy your int niggerdicks = (int)malloc((1024 * 8) * 8);, ``Faggot''

Name: Anonymous 2010-12-13 19:05

>>8
I already enjoy my (define >>8-faggot? #t), ``Faggot''.

Name: Anonymous 2010-12-13 19:36

What would you people recommend over C++ for interfacing with windows? I want to try and make myself reasonably employable, so I'm trying to learn how to work with the OS.

Name: Anonymous 2010-12-13 19:45

>>10
dont be dumb enough to think there is a 'best' one-size-fits-all language that will automatically get you a job anywhere. Programming languages are just tools, you pick the right tool for the job

if you want to be a sys admin learn a scripting language and the shell commands in the OS you will use

if you want to be a web developer learn all the web languages

if you want to work in corperate area, learn Java or C# and a data base language

if you want to build large scale apps or do systems programming learn C, C++ and assembly

Name: Anonymous 2010-12-13 19:46

>>10
Enterprise C# .NET Turnkey Solutions, Java.

Name: Anonymous 2010-12-13 19:56

>>8
Oh please, that is terrible.

Name: Anonymous 2010-12-13 21:23

>>11

I'm not looking for an ultimate do everything language, and I'm not looking to learn a new language from the ground up. I'm trying to learn how to make programs make use of the features of Windows and eventually other OSes, such as Making multiple threads and event-driven programing. The primary way of doing this seems to be through the Windows API. This appears to be best documented and most reliably implemented in c/c++, but I've reached a stage where a program I've written compiles under the compilers of different IDEs into two programs that behave differently. Thus I suspect there's ore to these things than just the .cpp and .h files, but there seems to be very little documenting it.

Failing that, another language that isn't too wasteful and can work with Windows would be good. There seem to be some languages out there with APIs made by third parties, but I've no idea how in-depth these things are, and I was hoping you people might know what a good one is.

Name: LISPPER 2010-12-13 21:33

LISP

Name: Anonymous 2010-12-13 21:42

>>14
If you want to do windows-only programming, i'd highly suggest you to try C#.

I'm not saying C++ is bad; Just that windows programming in C++ forces you to stick with the C API, unless you're using managed C++.

Name: Anonymous 2010-12-13 21:53

>>16
I'm not saying C++ is bad;
You should. C++ is a bad language.
If you need to do something with Windows, go with C#.
If you have to work with Unix, there are plenty of better languages then C++.

Name: Anonymous 2010-12-13 22:14

>>17
If you have to work with Unix, there are plenty of better languages then C++.

Such as C.

Name: Anonymous 2010-12-13 22:38

Thanks for the help, I'll give C# a try.

I like C/C++ as a language, but there seems to be a lot going on that isn't well documented. One of the things that bothers me off the top of my head is the #ifndef #define thing. I understand why it's there, but why does the name after these things have to be in capitals? And why do all the periods in it get replaced with underscores?

I'll probably have to try and find some in-depth book or something on these things at some point, but for now I'll leave the language alone.

Name: Anonymous 2010-12-13 22:48

>>19
I like C/C++ as a language,
There's no language named C/C++.
C and C++ are two different languages, C++ being a shitty one.
One of the things that bothers me off the top of my head is the #ifndef #define thing.
but why does the name after these things have to be in capitals?

It's just to distinguish between macro constants and variables.
And why do all the periods in it get replaced with underscores?
Because a period is not a legal character in an identifier.

I'll probably have to try and find some in-depth book or something on these things at some point,
I suggest K&R.

Name: Anonymous 2010-12-13 23:55

Name: Anonymous 2010-12-14 4:55

then started a new project in two different IDEs and compiled them
Most likely that's your fucking problem.
IDEs tend to smuggle a lot of runtime bullshit into compiled binaries.

Name: Anonymous 2010-12-14 6:51

>>17
then
I have bitch tits

Name: Anonymous 2010-12-14 9:25

LISP

Name: Anonymous 2010-12-14 10:11

>>23
Let me touch them.

Name: Anonymous 2010-12-14 14:16

>>25
No, we haven't even gone on three dates yet.

Don't change these.
Name: Email:
Entire Thread Thread List