PDA

View Full Version : where to find c/c++ source code



nite owl
January 31st, 2007, 12:17 PM
Hi I'm begining to learn c/c++, was looking for a site where i could download the source code of full applications for the two to see how they work instead of just trying to go off the little examples I find I learn better dealing with real program source code???Thanks guys.:)

lnostdal
January 31st, 2007, 12:32 PM
Hi I'm begining to learn c/c++, was looking for a site where i could download the source code of full applications for the two to see how they work

Take the name of any open source program and type it into google. Let's try "gaim". This leads me to: http://gaim.sourceforge.net/downloads.php and you'll see "Gaim 1.5.0 (Source)" mentioned at the bottom there.

But in general developers work with or against source code "repositories" using tools like CVS and SVN. You'll see a way of getting the source code using SVN at the same page also.



instead of just trying to go off the little examples I find I learn better dealing with real program source code???

I very much doubt this will work as intended. (edit: correction; i _know_ with 100% certainty that it won't) The right way to learn for instance how to create the GUI-part of an application like Gaim is to follow the GTK+ tutorial with its small examples with explanations of concepts while at the same time browsing reference-docs:

http://www.gtk.org/tutorial/
http://developer.gnome.org/doc/API/2.0/gtk/index.html

ansi
January 31st, 2007, 01:02 PM
You can use
http://www.google.com/codesearch
or
sudo apt-get source <package> (if you have configured sources.list and stable internet-connection, of course)

pythonbite77
January 31st, 2007, 02:39 PM
The Freshmeat site:

http://freshmeat.net/browse/160/

contains OSS for Unix/Linux and has a search by language feature. Currently there are over 4000 C++ projects and over 8000 C projects.

nite owl
February 1st, 2007, 03:11 AM
Thanks pythonbite77, ansi & lnostdal...exactly what I was looking for