• Advertisement

Archived

This topic is now archived and is closed to further replies.

Help a few kids learn C++

This topic is 5125 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

A few people i know and I want to start learning C++, but it is pretty difficult. We are wondering what some of you guys suggest we use to start. 2 of us have a book called C++ for dummies 4rth edition. I think my main problem might be is understanding how to use the compiler.

Share this post


Link to post
Share on other sites
Advertisement
What compiler do you have? Is it Visual C++ .NET Enterprise Edition?

If it isn''t then just say what it is and folks here can help you get started, or at least point you to resources.

Share this post


Link to post
Share on other sites
Hi!

You should tell us which compiler you use, and, if any, which IDE. Then it would be easier to help you out.

But to understand a compiler, you should also understand what steps are involved in compiling/linking your application. Most books I know gave at least a little introduction to this.

Other than that, I think it''s a great idea to not start coding alone, but together with a few friends!

cya,
Drag0n


-----------------------------
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning..." -- Rich Cook

My future web presence: Dave''s Programming Resources

Share this post


Link to post
Share on other sites
quote:
Original post by Suicide_joe
A few people i know and I want to start learning C++, but it is pretty difficult. We are wondering what some of you guys suggest we use to start.
2 of us have a book called C++ for dummies 4rth edition. I think my main problem might be is understanding how to use the compiler.



It generally only takes a couple of days (at most) to get your compiler working correctly. It''s good that you''re doing it with friends, but you need to remember that some people will have a lot more trouble than others, and that you need to move ahead slowly, even with only one person.

Share this post


Link to post
Share on other sites
We are using Dev C++
Whats funny is i just tried it with the code i found on an internet tutorial, and it worked. There must have been a fault in the code some how.
It might be because C++ for dummies is using GNU, which runs in DOS, i have xp so i can''t use my DOS. Maybe thats it?

Share this post


Link to post
Share on other sites
umm with dev-cpp are you sure your running it as a console program. and you gotta go start a new project before you code.


Share this post


Link to post
Share on other sites
Some of the header files were changed (1998), such as the I/O header file to try and make the C++ launguage a bit more universal. It used to be #include <iostream.h>, which wont compile on dev c++, its now #include <iostream>. Also you need ''using namespace std;'' at the start of your code to declare space for the cout, cin, endl objects.

Maybe that your probem ?

''A library consists of the actual binary code behind the API. You link your game code to the library to make everything work.''

Share this post


Link to post
Share on other sites
quote:
Original post by Raloth
Dev-C++ is evil.


Dev-Studio is slower less funtional and generates larger executables. It will get better. But Dev-Cpp is years old. And at the time better.

LETS NOT FLAME WAR OVER WHAT IDE IT''S ALL THE SAME COMPILER




Share this post


Link to post
Share on other sites
quote:
Original post by DerAnged

LETS NOT FLAME WAR OVER WHAT IDE IT''S ALL THE SAME COMPILER





Which is why the executables will be the same size and be the same speed, therefor invalidating your arguements.

Share this post


Link to post
Share on other sites
However, newbies could care less in all this IDE chatter. They need something that will compile their simple code. They''re not making Quake or anything, so the .exe size really doesn''t matter.

-Peter

Share this post


Link to post
Share on other sites
EDIT: THIS POST WOULD HAVE STARTED A WAR! MY FAULT!




[edited by - DerAngeD on February 7, 2004 10:04:58 PM]

Share this post


Link to post
Share on other sites
quote:
Original post by Suicide_joe
It might be because C++ for dummies is using GNU, which runs in DOS, i have xp so i can''t use my DOS. Maybe thats it?


The compiler you are refering to is known as GCC (GNU Compiler Collection). It does run on a variety of platform, including both DOS and Win32. It is also, incidentally, the compiler that is integrated into the Dev-C++ IDE, so the problem lies not with the compiler, but either with the book, or with the typist


“Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.”
— Brian W. Kernighan (C programming language co-inventor)

Share this post


Link to post
Share on other sites
Post yer code...

btw, use the [source.] and [/source.] tags around your source (without the ".")

Share this post


Link to post
Share on other sites

  • Advertisement