I was already a little bit familiar with programming in c++ before this, so this first program was really easy to me. Though I had to remember a few things because I hadn’t program in like 10 months.
For this I use an app in my phone call «Learn C++». I don’t recommend it for actually learning, it is more like a review or practice kind of thing. For this first topic the information is in the first unit called «Basic Concepts».
The code:
The code in general looks small, but I thought convenient to show the «results».
Note: I used the line: «cout<<endl;» merely for aesthetic reasons. The purpose of this is to jump a line so the results won’t be all in the same line.
Deja un comentario