Difference between revisions of "From C++03 to C++11"

From Gridkaschool
m (C++11 books)
m (access to machines)
Line 35: Line 35:
 
===access to machines===
 
===access to machines===
 
You can run the exercises either on your own computer or ssh to one of our prepared machines using your Gridka School account.
 
You can run the exercises either on your own computer or ssh to one of our prepared machines using your Gridka School account.
* connection from Linux/Unix: ssh -p24 <username>@gks-<xxx>.scc.kit.edu
+
* connection from Linux/Unix: ssh -p24 <username>@gks-virt<xxx>.scc.kit.edu
 
* connection from Windows: use an ssh client like putty, or use cygwin
 
* connection from Windows: use an ssh client like putty, or use cygwin
 
This is a list of hostnames:
 
This is a list of hostnames:
gks-084
+
gks-virt084
gks-088
+
gks-virt088
gks-098
+
gks-virt098
   
 
===compilaton and execution of code===
 
===compilaton and execution of code===

Revision as of 17:06, 28 August 2014

Gridka School 2014 C++ course

  • Martin Heck, KIT EKP
  • Jörg Meyer, KIT SCC

Literature on C++

C++ books

  • The C++ Programming Language, Bjarne Stroustrup
  • Effective C++, Scott Meyers
  • More Effective C++: 35 New Ways to Improve Your Programs and Designs
  • Modern C++ Design, Andrei Alexandrescu
  • The C++ Standard Library, Nicolai M. Josuttis
  • C++ Templates, David Vanevoorde, Nicolai M. Josuttis
  • Exceptional C++, Herb Sutter
  • More Exceptional C++, Herb Sutter

C++11 books

  • The C++ Programming Language, 4th Edition, Bjarne Stroustrup
  • The C++ Standard Library: A Tutorial and Reference (2nd Edition), Nicolai M. Josuttis
  • C++11 programmieren, Torsten T. Will (German)

C++ links

C++11 links

Technical aspects for the course

Gridka School slides

access to machines

You can run the exercises either on your own computer or ssh to one of our prepared machines using your Gridka School account.

  • connection from Linux/Unix: ssh -p24 <username>@gks-virt<xxx>.scc.kit.edu
  • connection from Windows: use an ssh client like putty, or use cygwin

This is a list of hostnames: gks-virt084 gks-virt088 gks-virt098

compilaton and execution of code

Most examples consist of just one cpp file, i.e. no header file, no additional library. Use the following commands to compile and run the code:

g++ mycode.cpp
./a.out

For C++11 support do:

g++ -std=c++11 mycode.cpp
./a.out