go to start Sol W2
|home |print view |recent changes |changed October 31, 2017 |
exact
|You are 54.81.139.56 <- set your identity!

Sections: 1. Count non-whitespace Chars | 2. Count all Chars | 3. Count Words | 4. Count lines | 5. Very Simple Calculator | 6. Simple Calculator from stream | Drill questions |

Here come your solutions!

When posting code you can leave out scaffolding like the generated code from unit tests or the #includes required. If there is already a solution that is different from yours, just add yours or discuss the difference. Caution: parallel edits might cause data loss (however, versioning happens and you can retrieve an overwritten edit).

1. Count non-whitespace Chars ^

2. Count all Chars ^

3. Count Words ^

4. Count lines ^

5. Very Simple Calculator ^

6. Simple Calculator from stream ^

Drill questions ^

Provide the header where defined:

namespace headerfile variable function type description
std::cin iostream x Represent standard input stream
std::endl ostream x Inserts a newline character into the output sequence os and flushes it as if by calling.
std::tolower cctype x Converts given character to lowercase (A -> a).
std::string string x Stores and manipulates sequences of char-like objects.
std::distance iterator x Returns the number of hops from first to last.
std::istream_iterator iterator x Read successive objects of type T from the basic_istream.
std::size_t cstddef x Unsigned integer type of the result of the sizeof operator.
std::vector vector x Sequence container that encapsulates dynamic size arrays.

//T. Corbat: Korrekte Antworten


|home |print view |recent changes |changed October 31, 2017 |
exact
|You are 54.81.139.56 <- set your identity!

Sol W2
go to start