This tutorial helps you to avoid some of the common pitfalls with strings, buffers, stacks and memory leaks.
Crashproof C++
Thursday, March 13, 2008
Crashproof C++
Posted by htRULZ at 9:20 PM 0 comments
Saturday, February 16, 2008
Monday, February 4, 2008
Programming in C Course
Here is a great online programming course with all materials and notes available for free: Programming in C Course.  Included are the lecture workbook, exercises, problems, and assessments. Solutions to all of these are also included.
C Programming Workbook and Exercises:
 
- Session 1 Introduction To Programming
 
basic C program, syntax rules, variables, naming variables, the printf statement
Exercise: Hello, World!
Exercise: Large letter
- Session 2 Data types, basic arithmetic
 
Exercise: Real roots of a quadratic equation
Exercise: Volume converter
- Session 3 Control: decisions and looping
 
Exercise: Hello, world! revisited
Exercise: Factorial
Exercise: Quadratic roots revisited
Techniques for planning and writing an algorithm as a C program,
use of flow diagrams, step-by-step solutions to two past assessments
Exercise: Day of week
Exercise: Newton-Raphson method
- Session 5 Functions
 
returning values from functions, math.h library
Exercise: Replacement pow() function
Exercise: Simple sort function
- Session 6 File I-O, formatted I-O
 
use of printf to format output, more on scanf
Exercise: Cartesian to polar conversion (Vectors Data File)
Exercise: Student database (Students Database File)
- Session 7 Arrays, string handling
 
string handling
Exercise: Full name
Exercise: Matrix multiplication
- Session 8 Structures
 
passing a structure to a function, linked lists.
Posted by htRULZ at 5:42 PM 0 comments
Labels: Tutorials
C Programming Training
Posted by htRULZ at 5:38 PM 0 comments
Labels: Tutorials
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
Posted by htRULZ at 6:44 PM 0 comments
Labels: Downloads
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.
Posted by htRULZ at 6:00 PM 0 comments
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.
Posted by htRULZ at 5:46 PM 0 comments
Labels: Tutorials
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
Posted by htRULZ at 11:20 AM 0 comments
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.)
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:
             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:

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.
Posted by htRULZ at 8:02 PM 0 comments
Labels: Tutorials
Friday, January 18, 2008
Download "The C Programming Language" (E-BOOK)
Posted by htRULZ at 9:48 PM 0 comments
Labels: Downloads
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 
- C Programming Tutorial (K&R version 4) [mirror]
 - C Library Reference Guide
 - Programming in C: A Tutorial
 - Introduction to C Programming
 - C Programming (Brian Brown)
 - C Programming (Steve Holmes)
 - C Programming Note (Steve Summit)
 - Programming in C (Peter Burden)
 - C Elements of Style
 - Programming in C - UNIX System Calls and Subroutines Using C
 - Writing Bug-Free C Code
 - A Tutorial On Pointers And Arrays In C
 - C Language Reference Manual
 - The Function Pointer Tutorials
 - Teach Yourself C in 21 Days
 - The C Library Reference Guide
 - Object-Oriented Programming with ANSI C
 - A to Z of C
 - Introduction to C and C++ Programming
 
24 C++ Programming eBooks and Tutorials
- Thinking in C++, by Bruce Eckel, 2nd Edition, Vol. 1 [download]
 - Thinking in C++, by Bruce Eckel, 2nd Edition, Vol. 2 [mirror] download]
 - Thinking in C++, 2nd Edition (Beta)
 - C++ Annotations
 - ANSI/ISO C++ Professional Programmer's Handbook
 - Software Engineering using C++
 - A Beginners C++
 - More C++
 - Data Structures and Algorithms with Object-Oriented Design Patterns in C++
 - An Introduction to C++ and Object Oriented Programming (Ian D Chivers)
 - Introduction to Object-Oriented Programming Using C++
 - C++ Programming for Scientists
 - Techniques for Scientific C++
 - C++ Standard Template Library Programmer's Guide
 - Introduction to C++ Programming
 - Who's Afraid of C++?
 - Optimizing C++
 - C++ in Action
 - Teach Yourself C++ in 21 Days [mirror]
 - C++ Programming HOW-TO
 - Complete C++ Language Tutorial
 - C/C++ Reference
 - Coronado Enterprises C++ Tutor, v 2.2
 - C++ Quick Reference
 
Posted by htRULZ at 9:09 PM 0 comments
Labels: Downloads


