Posts

  • C++: The Basics - eps1.11_Operators

    C++: The Basics - eps1.11_Operators

    Hello and welcome. Name the three O’s of an expression! Already forgotten? All right, for once I’ll give you a quick summary.

    An expression consists of O perands, which are connected with O perators. Operators are the symbolic description of a O peration. Operands are variables or literals of all possible data types. And for each data type, there is also a set of operators.

    To put it briefly, with operators you can process data, modify it, or make decisions based on it.


  • C++: The Basics - eps1.10_ExpressionsAndStatements

    C++: The Basics - eps1.10_ExpressionsAndStatements

    Hello and welcome. In this blog post we’re going to look at….

    Halt Stop! One more data type and I’ll shut down! #yawn The last few posts have all been about typing variables and constants in C++. We have extensively dealt with primitive data types, user defined data types, arrays of a data type and first data type classes from the standard library. Slowly, there should be enough.”

    So or so I fear your thoughts. And indeed, it is enough for the time being. This is a very good selection, with which we are able to solve many problems. After all, the use of variables and constants is only useful if the computer can do calculations with them. And that’s exactly why this time we’ll look at how we can work with them for this purpose.


  • C++ Standard Library and the STL

    C++ Standard Library and the STL

    Does the acronym STL mean anything to you? No, not yet?! STL stands for Standard Template Library and no matter in which forum I am on the way or which book I read, everywhere the STL is suggested to me.

    If you want to write really big programs efficiently, you can’t avoid to use libraries. After all, you don’t have to reinvent the wheel every time. That would be very cumbersome. Besides, almost every task is simplified with the use of software libraries.

    And with which library do you start best? In the case of C++, of course, with the C++ Standard Library. Or the STL? Wait a minute, are these two names for the same thing? Where are the differences?

    So I have no other choice. I have to deal with the STL, if only out of curiosity. This is aroused. Now I want to know what is constantly recommended to me and why.


  • C++: The Basics - eps1.9_VectorAndString

    C++: The Basics - eps1.9_VectorAndString

    Hello and welcome. As my faithful companion, you last time joined me in discovering the array. We learned the concept behind it and the special case of the char array. We also know how to work with this data structure.

    The array has its origin in the C programming language and you will find many source codes in which C-style arrays are used.

    C++ supports arrays, but provides its own template classes based on them for storing and arranging data or for strings. Although many disadvantages disappear with it and the use is around a lot more comfortable, they are often not given the deserved attention.

    I would like to change this and therefore we look in this contribution std::vector and std::string from the C++ Standard Library.


  • C++: The Basics - eps1.8_Array

    C++: The Basics - eps1.8_Array

    We are the heirs of the past and should always be aware of it. Let’s take the chance not to repeat mistakes and apply acquired knowledge. We don’t need to reinvent the wheel, but knowing its origin definitely doesn’t hurt.

    Why this appeal? Firstly, its statement applies generally and comprehensively to all areas of our lives as well as society. Adopt the good and improve the inappropriate. On the other hand we want to learn the programming language C++, which is an extension of the programming language C and therefore also builds on a history.

    Therefore we often meet “relics” of this origin. This time it is the arrays.


subscribe via RSS