Difference between revisions of "Libraries"
(Created page with "When programming in C++ it is important to remember to include libraries, some IDEs automatically common libraries such as Cstd and iostream. <tabber> C++= <syntaxhighlight ...") |
m (Added c# random and c++ string) |
||
Line 1: | Line 1: | ||
− | When programming in C++ it is important to remember to include libraries, some IDEs automatically common libraries such as | + | 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. |
<tabber> | <tabber> | ||
Line 6: | Line 6: | ||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
#include <iostream> //iostream is used in order to write to and from the console | #include <iostream> //iostream is used in order to write to and from the console | ||
+ | #include <string> //string allows the usage and manipulation of strings | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|-| | |-| | ||
C#= | C#= | ||
− | <syntaxhighlight lang="csharp"> using <Math>//This allows powers and square roots to be used </syntaxhighlight> | + | <syntaxhighlight lang="csharp"> |
+ | using <Math>//This allows powers and square roots to be used | ||
+ | using <Random> //This allows access to random number generation | ||
+ | </syntaxhighlight> | ||
</tabber> | </tabber> | ||
''''' I will be adding a list of useful libraries with summaries of what they contain for C++ and c# if I have time.''''' | ''''' I will be adding a list of useful libraries with summaries of what they contain for C++ and c# if I have time.''''' |
Latest revision as of 09:00, 22 December 2016
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.