Libraries

From TRCCompSci - AQA Computer Science
Revision as of 09:00, 22 December 2016 by Jared (talk | contribs) (Added c# random and c++ string)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.