Small corrections

This commit is contained in:
Antti H S Laaksonen 2016-12-29 02:23:54 +02:00
parent 0c93e54436
commit 189dfcf070
1 changed files with 5 additions and 5 deletions

View File

@ -77,8 +77,8 @@ is not an unfair advantage in the contest.
All examples in this book are written in C++,
and the data structures and algorithms in
the standard library are often used.
The standard is C++11 that can be used in most
contests.
The book follows the C++11 standard
that can be used in most contests nowadays.
If you can't program in C++ yet,
now it is a good time to start learning.
@ -93,19 +93,19 @@ looks like this:
using namespace std;
int main() {
// koodi tulee tähän
// solution comes here
}
\end{lstlisting}
The \texttt{\#include} line at the beginning
is a feature in the \texttt{g++} compiler
of the code is a feature in the \texttt{g++} compiler
that allows to include the whole standard library.
Thus, it is not needed to separately include
libraries such as \texttt{iostream},
\texttt{vector} and \texttt{algorithm},
but they are available automatically.
The following \texttt{using} line determines
The \texttt{using} line determines
that the standard library can be used directly
in the code.
Without the \texttt{using} line we should write,