Friday, January 25, 2008

500 Programming ebooks

Here is a good computer programming ebook repository site, at debian.yaako.org/ebook, that hosts over 500 computer ebooks in many areas

C/C++ ON WIKIPEDIA

Check out what Wiki has in store on C and C++

20 C++ Books and Ebooks

Here are 20 C++ Books and Ebooks teaching programming in C++, Borland C++ Builder, and Microsoft Visual C++. These C++ books will help you learn this important programming language if you are just beginning. If you already know how to program using C++, they can help you in improving your C++ coding and application development skills.

C Tutorials

C++ Maniac

This site currently features a C programming tutorial that consists of about 19 lessons and includes some C++ material.

FriedSpace.com C Programming Tutorial

A full set of detailed tutorials which cover most of the basics of C by taking the reader through some useful programming projects. The tutorials are keyed to Pelles C, but will compile under any standard C compiler.

Programming in C

This is a set of notes on Programming in C.

Tutorial on Pointers and Arrays in C

This tutorial covers the basics of using pointers and arrays in the C programming language. You can read it online or download it as a set of html pages.

Learn C by example in just 5 hours

This short c programming tutorial is an introduction to the basics with some simple examples useful as a quick reference for those just starting to learn C.

C-LESSON.ZIP

A downloadable c programming course.

howstuffworks.com

This is part c programming tutorial and part introduction to the basic concepts of the c programming language.

Introduction to C Programming

A beginner level c programming tutorial for students from the Leicester University Computer Centre.

Windows Programming Tutorial

Windows C Programming Tutorial with examples in the c programming language.

C Programming Tutorial

C programming tutorial that includes a list Compiler Error Messages for Borland.

Introduction to network functions in C

A basic c socket tutorial showing how to write simple socket servers.

Beej's Guide to Network Programming

Guide to using internet sockets with the c programming language.

C Programming Tutorial (K&R version 4)

This is a C Programming Tutorial for people who have a little experience with an interpreted programming language, such as Emacs Lisp or a GNU shell.

A C Tutorial on Pointers and Arrays

This document is intended to introduce pointers to beginning programmers in the C programming language.

C Programming Course

The course aims to introduce programmers to the C language. Previous programming experience is assumed, so we can quickly progress to looking at the features of C and their uses.

programming with c language

A number of c programming examples such as printing out words in place of numbers, using structures to hold billing data, reading and writing from files, and other basic programming tasks.

Identifiers NOT To Use in C Programs

The C standard reserves quite a few identifiers, meaning that you must not create variables, functions, or macros with those names. If you don't obey the restriction, you can have nasty subtle bugs in your program. This page lists the reserved identifiers and discusses the pitfalls

The Top 10 Ways to get screwed by C

To get on this list, a bug has to be able to cause at least half a day of futile head scratching, and has to be aggravated by the poor design of the C language.

Sunday, January 20, 2008

C++ on YOUTUBE

(VIDEO) C++ programming tutorial 1



C++ Programming Tutorial 2 (Part 1 of 2)



(VIDEO) C++ Programming Tutorial 2 (Part 2 of 2)



(VIDEO) C++ Programming Tutorial 3



(VIDEO) C++ Programming Tutorial 4 (Part 1 of 2)



(VIDEO) C++ Programming tutorial 4 (part 2 of 2)




(VIDEO) C++ Programming Tutorial 5



Saturday, January 19, 2008

DevC++ For Windows

What is DevC++

DevC++ is a full-featured integrated development environment (IDE) that uses the MinGW version of C++. An IDE is a program that allows you to edit, compile, and debug your C++ programs without using the command-line. For those of you who prefer to use your own editor, download the command-line version of MinGW instead.

DevC++ comes with everything you need to compile and link both console-mode and GUI programs that will run on Windows 95/98/NT/2K/XP; your programs will not run on Windows 3.1 or on plain DOS machines however. You don't need to download and install anything else.

The rest of this page will walk you through the steps necessary to download, install, and run your C++ programs using DevC++ and the included version of the MinGW C++ compiler.

What is MinGW?

MinGW ("Minimalistic GNU for Windows") is a command-line C/C++ compiler and utilities, based on the GNU GCC project. It compiles and links code to be run on Win32 platforms (Win95 through XP). Unlike some other versions of GCC, MinGW uses the Microsoft runtime libraries, distributed with the Windows operating system. Since these runtime libraries are not distributed using GNU's General Public License (GPL), you do not have to distribute your source code with your programs unless, of course, you use a GPL library in your programs.

Step 1: Download DevC++

Click the link below to download DevC++ 5 from SourceForge:
http://prdownloads.sourceforge.net/dev-cpp/devcpp4980.exe

When the download dialog (below) appears, click Save,rather than Open:


Save the file in a download or temporary directory on your local machine. (Be sure to remember where you put it!).

The downloaded file is about 12.5 MB


Step 2: Install DevC++

Using Windows Explorer, locate the file you downloaded, check it's size to make sure that the download didn't stop prematurely, and then double-click it:

Click OK when the Welcome dialog appears, as shown here:

Read through the license and then click I Agree to install:


DevC++ is released under the GNU Public License, (GPL), which allows you to obtain and modify the source code to the compiler and IDE. If you do so, then the changes you make must also be released under the GPL. However, the programs you create with MinGW don't normally link with GPL libraries, so you are free to distribute the programs you write using DevC++ and MinGW in any way you wish.

Select a folder where you would like to install DevC++. It's best if you don't use a folder that contains spaces, (such as "Documents and Settings"). As you can see here, I've created a folder named bin, where I install all of the programs that I use. Click Install once you've selected a folder:



Here's the dialog that is displayed while the files are decompressed and installed



Step 3: Configure the IDE

The first time you use DevC++ you'll want to configure it to your use. (You'll need to do this the first time you use DevC++ in the Computing Center as well.)

Select the language and theme that you want to to use. Don't worry if you make a mistake, since you can modify your selection later:

Configure the Environmental Options:


Change to the Files & Dir tab, and then click the little button to the right of User's Default Directory text field. (You can't type directly in the field.)


Configure the Editor Options :



Configure the Compiler Options :


On the Compiler tab, add the following switches when calling the compiler:

-ansi -pedantic -Wall
Note that the W in Wall is capitalized, but everything else is lowercase. Here's what this tab should look like:

On the Settings tab, choose Code Generation, and change Enable exception handling to Yes, as shown here:

While still on the Settings tab, choose Linker and change Generate debugging information to Yes as shown here:


Step 4 : Compile, Link, and Run

Here are the instructions to edit, compile, link, and run, a simple 3-file C++ project, based on a simple stock program from pages 416-419 in the C++ Primer Plus, 4th Edition.

Create a new project. You'll want to create a new project for every program, simply because it helps you to keep your files straight, and makes your life less confusing:


Choose Empty Project from the New Project dialog. Provide a name, (HW01 in the shot shown here), and click OK:


DevC++ will drop you in the folder you specified when you configured the Environmental Options in Step 3. Unlike Microsoft's Visual Studio, DevC++ doesn't automatically create a new folder for every project. Since you don't want all of your files in the same folder--especially in this class, where you'll create several different versions of the same files--you should Create a New Folder to store your project, as shown here:

Navigate to the new folder, and save the project file (HW01.dev in the screenshot shown here:

Create your source code files. Start by right-clicking the project in the Project tab, and then choosing New File as shown here:

This creates an Untitled file. Click Save, (or press Control+S), and provide a name, as shown here:










Repeat the project with each file in your project. Once you've created all of the files, you can type in the source code using the editor. The screenshot here shows the three source files in the project, after all of the code has been entered:



Build the Project
. DevC++ doesn't have separate Compile and Build settings, like some development environments. When you click the Compile button, (or press Control+F9), all of the C++ files in the project are compiled (if necessary), and the linker creates the executable program:



As your program is being compiled, you'll see a progress dialog showing the individual steps:



At the bottom of the screen, you'll also see a set of tabs that allow you to see the actual commands sent to the MinGW compiler, just as if you typed them from the command line:



Run the Program
. To run the program, you can select the Run toolbar button, as shown here, or press Control+F10.



Unfortunately, when you do that, the program opens a Command Prompt window, runs your program, and then immediately closes the window before you can examine the output.

To get the window to "stick around", you can add a command:

cin.get();
at the end of your main() function. If you do this, remember to remove the line before you submit your code, otherwise it won't run correctly. A better solution, though, is to set a breakpoint at the end of your main() function, and then Debug the program instead of Running it. Simply click in the margin as shown here:

Start the program by clicking the Debug toolbar button (shown here), or by pressing F10:



A Command Prompt window will display the output of your program, and then stop on the breakpoint, leaving the command window open like this:

To close the output window, choose the Debug tab at the bottom of the DevC++ IDE, and click on Continue. This will close the console window.

Friday, January 18, 2008

Download "The C Programming Language" (E-BOOK)



by Brian W. Kernighan and Dennis M. Ritchie.
Prentice Hall, Inc., 1988.

http://www.thenile.co.nz/images/books/Brian-W-Kernighan-Dennis-Ritchie-Dennis-M-Ritchie/The-C-Programming-Language-2nd-Edition-9780131103627.jpg

  • Download Link 1 - PDF (2.1 MB)
  • Download Link 2 - PDF (2.1 MB)


43 C - C++ Programming Ebooks and Tutorials

Ok guys have had a lots of fun ........Lets be serious.........Here are working links to 43 excellent free C and C++ Programming Ebooks and Tutorials. These C / C++ ebooks will help you learn how to program in this important programming language. These will also help the more advanced C / C++ programmer to increase coding skills in many areas. I hope these help you.


19 C Programming eBooks and Tutorials


24 C++ Programming eBooks and Tutorials