Small corrections
This commit is contained in:
parent
0c93e54436
commit
189dfcf070
10
luku01.tex
10
luku01.tex
|
@ -77,8 +77,8 @@ is not an unfair advantage in the contest.
|
||||||
All examples in this book are written in C++,
|
All examples in this book are written in C++,
|
||||||
and the data structures and algorithms in
|
and the data structures and algorithms in
|
||||||
the standard library are often used.
|
the standard library are often used.
|
||||||
The standard is C++11 that can be used in most
|
The book follows the C++11 standard
|
||||||
contests.
|
that can be used in most contests nowadays.
|
||||||
If you can't program in C++ yet,
|
If you can't program in C++ yet,
|
||||||
now it is a good time to start learning.
|
now it is a good time to start learning.
|
||||||
|
|
||||||
|
@ -93,19 +93,19 @@ looks like this:
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
// koodi tulee tähän
|
// solution comes here
|
||||||
}
|
}
|
||||||
\end{lstlisting}
|
\end{lstlisting}
|
||||||
|
|
||||||
The \texttt{\#include} line at the beginning
|
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.
|
that allows to include the whole standard library.
|
||||||
Thus, it is not needed to separately include
|
Thus, it is not needed to separately include
|
||||||
libraries such as \texttt{iostream},
|
libraries such as \texttt{iostream},
|
||||||
\texttt{vector} and \texttt{algorithm},
|
\texttt{vector} and \texttt{algorithm},
|
||||||
but they are available automatically.
|
but they are available automatically.
|
||||||
|
|
||||||
The following \texttt{using} line determines
|
The \texttt{using} line determines
|
||||||
that the standard library can be used directly
|
that the standard library can be used directly
|
||||||
in the code.
|
in the code.
|
||||||
Without the \texttt{using} line we should write,
|
Without the \texttt{using} line we should write,
|
||||||
|
|
Loading…
Reference in New Issue