Libraries

From TRCCompSci - AQA Computer Science
Jump to: navigation, search

When programming in C++ it is important to remember to include libraries, some IDEs automatically common libraries such as cstd and iostream. Some libraries will be included from including other libraries or headers as well.

#include <iostream> //iostream is used in order to write to and from the console
#include <string>   //string allows the usage and manipulation of strings

using <Math>//This allows powers and square roots to be used 
using <Random> //This allows access to random number generation

I will be adding a list of useful libraries with summaries of what they contain for C++ and c# if I have time.