Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

Search: 

  Tutorial: C++ In Action: Industrial-Strength Programming Techniques

The first part teaches C++, the language of choice for general-purpose programming. But it is not your usual C++ tutorial.

Tutorial Details:

For the beginner who doesn't know much about C or C++, it just introduces a new object oriented language. It doesn't concentrate on syntax or grammar; it shows how to express certain ideas in C++. It is like teaching a foreign language by conversation rather than by memorizing words and grammatical rules (when I was teaching it to students, I called this part of the course "Conversational C++"). After all, this is what the programmer needs: to be able to express ideas in the form of a program written in a particular language. When I learn a foreign language, the first thing I want to know is how to say, "How much does it cost?" I don't need to learn the whole conjugation of the verb 'to cost' in the past, present and future tenses. I just want to be able to walk into a store in a foreign country and buy something.

For a C programmer who doesn't know much about C++ (other than that it's slow and cryptic-the popular myths in the C subculture) this is an exercise in unlearning C in order to effectively program in C++. Why should a C programmer unlearn C? Isn't C++ a superset of C? Unfortunately yes! The decision to make C++ compatible with C was a purely practical, marketing decision. And it worked! Instead of being a completely new product that would take decades to gain the market, it became "version 3.1" of C. This is both good and bad. It's good because backward C compatibility allowed C++, and some elements of object oriented programming, to quickly gain foothold in the programming community. It's bad because it doesn't require anybody to change his programming methodology.

Instead of having to rewrite the existing code all at once, many companies were, and still are, able to gradually phase C++ in. The usual path for such a phase-in is to introduce C++ as a 'stricter' C. In principle all C code could be recompiled as C++ . In practice, C++ has somewhat stricter type checking and the compiler is able to detect more bugs and issue more warnings. So recompiling C code using a C++ compiler is a way of cleaning up the existing code. The changes that have to be introduced into the source code at that stage are mostly bug fixes and stricter type enforcement. If the code was written in pre-ANSI C, the prototypes of all functions have to be generated. It is surprising how many bugs are detected during this ANSI-zation procedure. All this work is definitely worth the effort. A C compiler should only be used when a good C++ compiler is not available


 

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
C++ In Action: Industrial-Strength Programming Techniques

View Tutorial:
C++ In Action: Industrial-Strength Programming Techniques

Related Tutorials:

Displaying 1 - 50 of about 2095 Related Tutorials.

C/C++ Programming Books
C/C++ Programming Books C/C++ Programming... topics for Visual C++ 6 programming. This book skips the beginning level material... Trolltech, this book covers all you need to build industrial-strength applications
 
RIAs Methods And Techniques
to RIAs that uses XAML and programming languages like C# and Visual Basic. Besides... And Techniques RIAs Methods And Techniques
 
C# Programming Books
C# Programming Books C# Programming Books... Started C# is pronounced as "C sharp". It is a new programming language.... It is the fountainhead of all knowledge. Incidentally, the C programming language also calls Main
 
Why Objective C?
; In this section we will learn about the importance of Objective C and "Why Objective C?" is used as programming language to develop... Why Objective C? Why Objective C
 
Techniques used for Generating Dynamic Content Using Java Servlets.
Techniques used for Generating Dynamic Content Using Java Servlets. Techniques... Microsoft. Programming using these plug-in are difficult and also
 
Ask C/C++ Questions online
;    C and C++ are different programming... purpose programming language that can run on most of the platforms. C is used... Bell Laboratory while C++ is a popular object oriented programming language
 
C and C++ books-page2
;       The C Programming Language ... C and C++ books-page2 C and C++ books-page2...; The Advice & Warning for C Tutorials  C and C
 
C and C++ books-page8
; The ODBC from C Tutorial  In this section for example-based C tutorials that introduce you to ODBC API programming in C. Each tutorial... C and C++ books-page8 C and C++ books-page8
 
C and C++ books-page3
at the standard C programming language. In no way does this guide attempt to teach... C and C++ books-page3 C and C++ books-page3...; C for C++ programmers Before there was C++ there was C
 
Perl Programming Books
way to learn programming techniques and develop your own style...; Advanced Perl Programming C supports both... Perl Programming Books Perl Programming Books
 
Class
oriented programming techniques. A class defines the properties of  objects... programming, the class is like a template from which an instance (object) of a class... on the roads. The same concept is employed in the object oriented techniques to create
 
Objective C
Objective C, Objective C programming language, Objective C Language.... In this complete guide of Objective C you will be learning the programming concepts... about Objective C programming language. Objective C is very old programming
 
Objective C Introduction
Objective C programming language. Objective C is very old programming language...; Objective C is simple and very intuitive programming language that makes the Object Oriented programming sample and sophisticated. Objective C is simple and small
 
C and C++ books-page11
; The Industrial Strength of C++ In early 1990, C++ was chosen...-based programming, generic programming, and functional programming. C...; Operator overloading of C++ Programm Object-oriented (OO) programming
 
Java programming
is an object-oriented language, and this is very similar to C++. Java Programming... Java Programming,Introduction to Java Programming,Online Java Programming Help Java programming    
 
iPhone Programming tutorials and examples
and iPhone programming. After completing these tutorials you will quickly learn and master iPhone programming techniques. This tutorial is designed for both... to master the iPhone SDK programming Learn Xcode Learn to debug
 
Programming Books
of free books  Ada Books C# Programming Books C/C++ Programming Books FreeBSD Books Game and Graphic... Programming Books Programming Books
 
Java vs. C
object-oriented programming (OOP). It's possible to write in Java in a C... for Object Oriented Programming (OOP). Java classes are like C++ class, which... Java: Java vs. C Java
 
Method in Java
of object oriented programming techniques. As we earlier described in the topic class... work in a class, object can't do anything without method. Some programming
 
Method
oriented programming techniques. As we earlier described in the topic class... without method. Some programming languages use reflexive data structures to do... programming technique. It provide the facility to redefine the inherit method
 
C and C++ books
API programming in C. Each tutorial contains C ODBC code samples...; Page 10 As a programming language, C is rather like Pascal... to give you a general overview of the C programming language. Although much
 
Java Programming Books
Java Programming Books Java Programming Books... keep this brief: This Java programming stuff is a lot easier than it looks. I'm..., Internet programming, and e-commerce.       
 
C and C++ books-page1
, loops and arrays, object-oriented programming, templates, and creating C... and the concepts involved with programming C++. You'll find the numerous examples... of this tutorial is to give a good understanding of the programming language C
 
C and C++ books-page4
;     The UNIX System call in c programming In order.... Even though C is one of the most used programming-languages... C and C++ books-page4 C and C++ books-page4
 
C and C++ books
API programming in C. Each tutorial contains C ODBC code samples...; Page 10 As a programming language, C is rather like Pascal... to give you a general overview of the C programming language. Although much
 
Objective C Tutorial
> The Objective-C programming language is the primary language selected by Apple... have prior programming experience in C language. If you have good knowledge of C... some time to learn C programming language. Objective C is an easy to learn language
 
Objective C Constructors
Objective C Constructors, Objective C programming language, Objective C Language Objective C Constructors...; Objective-C enables user to define constructor with the help of self and super
 
Objective-C keywords
Objective-C keywords, Objective C programming language, Objective C Language Objective-C keywords  ... in this section we will know about the keywords used in objective-C language
 
What is programming?
Programming Language,Definition of Programming,What is Programming Language,Object Oriented Programming Definition What is programming?          
 
Why Java as a programming Language?
spectators. If we consider on other high-level programming languages such as C... other programming languages like C++.   How Java can be used to develop... Why Java as a programming Language? Why Java
 
New to programming...
Java Programing, New to Java Programming, New in Java Programming... to programming...  ... & D's, the real life programming is here....having no space for complexities
 
Exception handling in Objective-C
Exception handling in Objective-C, Objective C programming language, Objective C Language Exception handling in Objective-C...;   Objective-C provide exception handling to handle
 
PHP Programming Books
to make the most of PHP 5's industrial-strength enhancements in any project... syntax and programming techniques in a clear and concise manner, with numerous... PHP Programming Books PHP Programming Books
 
Objective-C Inheritance
Objective-C Inheritance, Objective C programming language, Objective C Language Objective-C Inheritance...; Objective-C enables programmer to inherit common methods and properties
 
Programming
Java: Programming Java NotesProgramming Here are some tips on making programming student problems... elements of Extreme Programming (a much hyped, but good Software
 
Dynamic Types in Objective-C
Objective C, Objective C programming language, Objective C Language Dynamic Types in Objective-C  ...; Objective-C provides many methods to work with dynamic types. With these methods
 
Java - Continue statement in Java
; Continue: The continue statement is used in many programming languages such as C, C++, java etc. Sometimes we do not need to execute some statements under...; } Then the program will generate a error on compile time like :  C:\chandan>
 
Techniques to Improve GPS Accuracy
Techniques to Improve GPS Accuracy Techniques to Improve GPS Accuracy        ... and ambiguity resolution techniques, the entire processing work done in real time
 
Java Script Programming Books
Java Script Programming Books Java Script Programming Books         ... evolved. Simple markup tools such as HTML have been joined by true programming
 
Programming - max3() method
Java: Programming - max3() method Java: Programming - max3() method Problem Write a method which has... double max3(double a, double b, double c) Example. d = max3(7.5, -9999.999, 1.0
 
JSP Programming Books
insight, advanced techniques, industrial-strength code, and hands on coverage..., industrial-strength code, and hands on coverage of three top servers: Apache Tomcat... JSP Programming Books JSP Programming Books
 
EasyEclipse for C and C++
Eclipse Plugin-Language EasyEclipse for C and C...;   EasyEclipse for C and C++ is all you need to start developing C and C++ code with Eclipse. There are currently 28 comments
 
Objective-c memory management: retain and release
Objective-c memory management: retain and release, Objective C programming language, Objective C Language Objective-c memory... how to manage memory with language Objective-C. Programmer can allocate memory
 
Open Source c++
;       Open Source C++ GUI Programming Qt3... Open Source C++ Open Source c++ Open Source C... drivers for industrial control cards for not much proliferated platforms like Linux
 
Objective-c Dealloc
Objective C, Objective C programming language, Objective C Language Objective-c Dealloc                 
 
Java Programming Idioms
Java: Java Programming Idioms Java: Java Programming Idioms Introduction Every programming language has its ways of writing common programming constructions. Sometimes
 
Programming Style Guideline
Java Notes: Programming Style Guideline Java Notes: Programming Style Guideline Contents I. Motivation for programming guidelines II. Comments, indentation, spacing, braces, ... III
 
Message Expressions and comments
Message Expressions and comments, Objective C programming language, Objective C Language Message Expressions and comments...;   Like C and C++ objective-C provides comments. Programmer can
 
JSP JSTL c:if tag
JSP JSTL c:if tag JSP JSTL c:if tag... in jsp.  The c:if tag is used for a decision need, to be made in the page.../core" prefix="c" %> <html> <body> <form method="post">Guess
 
Cantata++ - for testing C and C++ software
Cantata++ - for testing C and C++ software Cantata++ - for testing C and C++ software    ... the requirements of the C/C++ languages to produce a tool which allows developers
 
Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.