background preloader

C++

Facebook Twitter

C++ Tutorial. Utilisation d'un istringstream. C++ - What is a smart pointer and when should I use one. Split - Splitting a string in C++ Pointers in C: when to use the ampersand and the asterisk. What are the differences between pointer variable and reference variable in C++ Syntax - What does '&' do in a C++ declaration. Fstream Tutorial. C++ FAQ. Standard Template Library Programmer's Guide.

Les meilleurs Cours et Tutoriels C++ Guru of the Week (GotW) Archive - Main Index Page. C++ for Numerical Methods. This is the site for MA903 C++ for Numerical Methods.

C++ for Numerical Methods

Below you will find links to the lecture notes and the worksheets as they become available. Exam Instructions Click here. Course Assessment The course will consist of a project and an exam. Please note that there will also be a small progress test at the end of the first term. Lecture Notes Worksheets Project Here you can download the source files for the project and the project specification Extra help. Const-Correctness in C++ The C++ 'const' Declaration: Why & How. The 'const' system is one of the really messy features of C++.

The C++ 'const' Declaration: Why & How

It is simple in concept: variables declared with ‘const’ added become constants and cannot be altered by the program. However it is also used to bodge in a substitute for one of the missing features of C++ and there it gets horridly complicated and sometimes frustratingly restrictive. C++ Coding Standard. Last Modified: 2008-03-01 tmh@possibility.com / To make comments on this page please see the new Disqus comment section.

C++ Coding Standard

Pferor was also nice enough to make a copy of this document available in pdf format. Standardization is Important It helps if the standard annoys everyone in some way so everyone feels they are on the same playing field. Good Points When a project tries to adhere to common standards a few good things happen: Programmers can go into any code and figure out what's going on. Bad Points Now the bad: The standard is usually stupid because it was made by someone who doesn't understand C++. Discussion The experience of many projects leads to the conclusion that using coding standards makes the project go smoother. Standards Enforcement First, any serious concerns about the standard should be brought up and worked out within the group. Failing willing cooperation it can be made a requirement that this standard must be followed to pass a code inspection.

Accepting an Idea. Google C++ Style Guide. Definition: Streams are a replacement for printf() and scanf().

Google C++ Style Guide

Pros: With streams, you do not need to know the type of the object you are printing. You do not have problems with format strings not matching the argument list. (Though with gcc, you do not have that problem with printf either.) Streams have automatic constructors and destructors that open and close the relevant files. Cons: Streams make it difficult to do functionality like pread(). I want to be a game developer... now what? With people looking to get into game development the same questions come up over and over, so I’ve opted to put my thoughts on the subject in one place and to compile a list of resources for new developers.

I want to be a game developer... now what?

Those questions? “I want to learn game programming, what language should I use?” Tips For Linux - Developing User Interfaces with GTK (C Programmers) - Part I. I assume you have written C programs under Linux which display their output at the terminal and now you would like to work under X as well.

Tips For Linux - Developing User Interfaces with GTK (C Programmers) - Part I

So you need something that will generate a user interface for you. Right.. that's what GTK is for. GTK v1.2 Tutorial: Getting Started. NextPreviousContents 2.

GTK v1.2 Tutorial: Getting Started

Getting Started The first thing to do, of course, is download the GTK source and install it. You can always get the latest version from ftp.gtk.org in /pub/gtk. You can also view other sources of GTK information on GTK uses GNU autoconf for configuration. The GTK source distribution also contains the complete source to all of the examples used in this tutorial, along with Makefiles to aid compilation. To begin our introduction to GTK, we'll start with the simplest program possible. /* example-start base base.c */ #include <gtk/gtk.h> int main( int argc, char *argv[] ) { GtkWidget *window; gtk_init (&argc, &argv); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_widget_show (window); gtk_main (); return(0); } /* example-end */ You can compile the above program with gcc using: gcc base.c -o base `gtk-config --cflags --libs` The meaning of the unusual compilation options is explained below in Compiling Hello World.

The next line: Asus EEE Pad Transformer VS Samsung Galaxy Tab 10.1. Main Page - clc-wiki. File Handling in C Language. Custom Search In this section, we will discuss about files which are very important for storing information permanently.

File Handling in C Language

We store information in files for many purposes, like data processing by our programs. Nautilus Extensions, the quick and dirty tutorial - Heiko Voigt. {*style:<i>the quick but hopefully clean tutorial ... in pure C. </i>*} by Heiko Voigt, Oktober 2009 A simple Example So you want to write a simple nautilus extension but do not know where to start? First of all: Download my very simple example to get you started. The Four Polymorphisms in C++ When people talk about polymorphism in C++ they usually mean the thing of using a derived class through the base class pointer or reference, which is called subtype polymorphism.

The Four Polymorphisms in C++

But they often forget that there are all kinds of other polymorphisms in C++, such as parametric polymorphism, ad-hoc polymorphism and coercion polymorphism. These polymorphisms also go by different names in C++, Subtype polymorphism is also known as runtime polymorphism. The C Book - Table of Contents. La programmation système en C sous Unix. C++ Tutorials - Absolute n00b spoonfeed - video tutorials for cplus, programming, tutorials, cpp, C++, make_games, noob, cplusplus, programs, spoonfeed.