Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Dec 25th, 2005, 3:28 PM   #1
pif13
Newbie
 
Join Date: Dec 2005
Posts: 10
Rep Power: 0 pif13 is on a distinguished road
i want to start programming in c++

i can't spend any money on a compiler or any books, because i'm a kid and i don't have money that i can spend on that stuff. can anyone reccomend me a good (free) compiler and good (free) learning resources?

edit: is dev-c++ any good?

Last edited by pif13; Dec 25th, 2005 at 3:43 PM.
pif13 is offline   Reply With Quote
Old Dec 25th, 2005, 3:47 PM   #2
coldDeath
Expert Programmer
 
coldDeath's Avatar
 
Join Date: Aug 2005
Location: UK
Posts: 862
Rep Power: 4 coldDeath is on a distinguished road
Send a message via AIM to coldDeath Send a message via Yahoo to coldDeath
Dev-C++ is a good IDE.

Tutorials:
www.cprogramming.com
www.cplusplus.com
www.google.com
Books:
Bruce Eckels Thinking in C++ (free book download) (probably too hard for you though)
__________________
Join us at #programmingforums @ irc.freenode.net!

My software never has bugs. It just develops random features.
coldDeath is offline   Reply With Quote
Old Dec 25th, 2005, 3:58 PM   #3
pif13
Newbie
 
Join Date: Dec 2005
Posts: 10
Rep Power: 0 pif13 is on a distinguished road
thanks
pif13 is offline   Reply With Quote
Old Dec 25th, 2005, 4:31 PM   #4
UnKnown X
Hobbyist Programmer
 
UnKnown X's Avatar
 
Join Date: Dec 2005
Location: Sandvika, Norway
Posts: 114
Rep Power: 0 UnKnown X is an unknown quantity at this point
Send a message via MSN to UnKnown X
Do you have any other programming experience? C++ is hard to jump right into.

I tried, and it worked for a while, but I progressed quite slowly when I got to classes and pointers, and it gets especially hard once you reach the more advanced stuff like inheritance and such.

So unless you already know some other languages, I suggest you learn one. Something very high-level like Python.
UnKnown X is offline   Reply With Quote
Old Dec 25th, 2005, 4:39 PM   #5
pif13
Newbie
 
Join Date: Dec 2005
Posts: 10
Rep Power: 0 pif13 is on a distinguished road
i know some python (i know all of the basics and i have a little knowledge of classes, methods, etc.).. i can't do graphics or anything but i use easygui to do gui (i don't know tkinter).. i just decided that i would rather learn c++ or something like that instead of continuing with python (i know, dumb decision, but it's just something that i want to do). do you think i have enough knowledge to learn c++? if not, are there any other languages that i could/should learn before c++?

Last edited by pif13; Dec 25th, 2005 at 4:53 PM.
pif13 is offline   Reply With Quote
Old Dec 25th, 2005, 6:00 PM   #6
Mjordan2nd
The Supreme Ruler
 
Join Date: May 2004
Location: Houston
Posts: 1,476
Rep Power: 6 Mjordan2nd is on a distinguished road
Python's a great language. Out of curiosity, why have you decided to switch?

I think you could learn to program in C++ without any prior programming knowledge, though it's true, certain aspects would be difficult to learn for someone without any programming experience. It is still not that difficult, imho. Since you already have experience with Python, I think that you should be able to pick it up fairly easily, at least until you get to pointers. Pointers seem to stump a lot of people, but you'll get more comfortable with them as you continue practicing C++.
__________________
"Every gun that is made, every warship launched, every rocket signifies, in the final sense, a theft from those who hunger and are not fed, from those who are cold and are not clothed. The world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children." - Dwight D. Eisenhower
Mjordan2nd is offline   Reply With Quote
Old Dec 25th, 2005, 6:38 PM   #7
Cache
Hobbyist
 
Join Date: Sep 2005
Posts: 261
Rep Power: 4 Cache is on a distinguished road
C++ is my first ever programming language, and I'm glad I chose it as my first too. Maybe you can learn it faster with prior knowledge of programming, but so what? If you want to learn C++ then give it a shot. If you find it too hard then try something else. I think C++ is a great language to start with -- the basics are easy to pick up, and classes are a god send. Pointers are a bit crazy, but even basic pointer usage is easy (for dynamic memory allocation and such).
Cache is offline   Reply With Quote
Old Dec 25th, 2005, 7:04 PM   #8
para
Programmer
 
Join Date: Dec 2005
Posts: 65
Rep Power: 3 para is on a distinguished road
Microsoft's compiler is free ( http://msdn.microsoft.com/visualc/vctoolkit2003/ ) as is a GNU GCC port ( http://www.mingw.org/ )

This is just the backend compiler (command prompt). If you want the GUI stuff you'll also want to download an IDE (integrated development environment). Someone said Dev-C++, that's a good one (I believe it works with both microsoft's compiler and gnu's). Also if you use Linux I highly recommend the Anjuta ( http://anjuta.sourceforge.net/ ) IDE.

I hear CPlusPlus.com has a good tutorial; http://cplusplus.com/doc/tutorial/ , although I've never read it.
After you read through the tutorial and get a feel for things, I recommend downloading a few programs you're interested in (within reason) from sourceforge.net (all source code is free there), and looking around how they might be doing it. I find open source a useful tool in learning
para is offline   Reply With Quote
Old Dec 25th, 2005, 7:19 PM   #9
pif13
Newbie
 
Join Date: Dec 2005
Posts: 10
Rep Power: 0 pif13 is on a distinguished road
well, when i was 10 (last year) and i started to get into programming i didn't have a clue what i was doing but i knew that i wanted to learn c++ because i knew that it's very powerful. i found out that it was too hard so i started to learn python. i learned a lot of python (well not a ton, but enough) and i decided to try and learn c++ again. thank you, everyone, for all your help!

edit: can i use dev-c++ by itself or do i HAVE to use it with something else?
pif13 is offline   Reply With Quote
Old Dec 25th, 2005, 7:30 PM   #10
nindoja
Programmer
 
Join Date: Jun 2005
Posts: 92
Rep Power: 4 nindoja is on a distinguished road
All you need to do is download dev-c++ with the MiniGW compiler (http://prdownloads.sourceforge.net/d....9.2_setup.exe ). It will do all of the compiler arguments for you. If you choose to use the microsoft one, you will have to set the compiler arguments seperatly.
nindoja is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:10 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC