Hide menu

TDDD38 Advanced Programming in C++

All Messages



4/4  String with iterators
 

A new version of lecture example String, with iterators, have been added, see String with iterators. Also, the implementation of the move assignment operator have been modified, according to how it is implemented in GCC. Also, note the comment about vector found in the code for the move assignment operator.


28/3  Modification of lecture example
 

Since GCC 4.8.0 now supports inheriting constructors, class Consultant in lecture example P-E-M-C now can take advantage of inheriting constructors from its base class Employee. Replace the public constructor declaration in the class definition (Consultant.h) with:

   using Employee::Employee;

and remove the corresponding separate definition (Consultant.cc). The code example is modified.


27/3  GCC 4.8.0 is installed at IDA, and is also default for module prog/gcc/4

26/3  Exam March 26
 

Solutions are available from the course examination page, or via this direct link, together with comments.


22/12  Exam March 26, 14-19
 

• Registration is closed, deadline was March 17.

• The exam will take place in SU00-SU18, at IDA. Admission order is SU15-18, SU12-14, SU10-11.

• To arrive unregistered to a computer exam and be able to participate requires that the exam system admin is available and have possibility to add new examinees. You must also, as usual when late or not registered, wait until 30 minutes after the exam started before being allowed to enter.

Please note, the compiler version will be GCC 4.7.2. There will be four aliases available for facilitating the use of g++:

    g++11 — correspond to g++ -std=c++11 -L/sw/gcc-4.7.2/lib -static-libstdc++

    w++11g++11 with addition of -Wall -Wextra -pedantic

    g++11filter — messages from g++11 is filtered by gccfilter

    w++11filter — messages from w++11 is filtered by gccfilter


22/12  GCC 4.8.0 was released

22/2  Exam March 26, 14-19
 

Registration is open in Studentportalen from February 24 until March 17.

Note 1: This is a re-examination occation, but anyone who feels prepared is wellcome. If following the course this semester, you have to study the standard library part yourself (main topic for lecture 10-13, which are given after Easter). The ordinary exam for the course given this semester is May 30.

Note 2: To arrive unregistered to a computer exam and be able to participate require that the exam system administrator is available and have possibility to add new examinees. You must also, as usual, if late or not registered, wait until 30 minutes after the exam has started before being allowed to enter.


23/1  Installing precompiled binaries for GCC on Macintosh

21/1  Correction Lecture slides, page 59
 

A right parentesis was missplaced in code example, should be removed after ']', and inserted at the end of the line:

   String(const char* s)
     : size_(strlen(s)), p_(strcpy(new char[size_ + 1], s))
   {}

A definition for static member empty_rep_ has also been added on page 53.


16/1  Exercise on Aggregates and List initialization is reformulated — solutions available

16/1  Two labs will be reschedule
 

• Friday Jan 25, 13-15
• Monday Feb 25, 10-12

Where-to not yet known.


14/1  Correction Course introduction slides
 

• page 9, last line should be:

   fun()();

• page 10, the function return type in the first template declaration was missing, should be:

   template <typename T> T fun(const T& a);

Slides available on the lecture page are corrected.


14/1  Handouts lecture 1
 

The following booklets were handed out on lecture 1:
• Slide copies for the introduction on lecture 1.
• Slide copies "Basic C++" (lecture 2-3).
• Slide copies "Single Class Design and Operator Overloading" (lecture 4-5), and
• accompanying "Code example String"

See alse the course lecture page 

Left over copies are available outside Tommy Olsson's office B 3D:449.


11/1  The course starts Monday, January 14, 10.15 am, room P42
 

Slide copies and code examples for lecture 2-5 will be handed out, se the course lecture page.



Page responsible: Tommy Olsson
Last updated: 2008-11-06