#WSQ03 Este e un programa para calcular 4 diferentes operaciones

operacionesatom
Este es un programa para calcular la resta, multiplicación, división y module de dos numeros, para los que sobre todo no saben que es el module, module significa que en ves de darte el resultado de la división, te va a dar el residuo, es decir, en mi programa la división de 2/2 es 1, y cuanto sobra? 0, por lo cual el resultado del module, no será 1 como en la división, sino 0, también toma en cuenta que éste se representa con el símbolo de porcentaje “%” Entonces, en este programa se piden dos números denominados como x y y, que se están pidiendo al usuario, y también se pone el nombre de donde se guardaran dichos resultados, como resta, multiplicación división, module, no tienen que ser esos nombres, puedes guardarlos como tu quieras, cabe mencionar que el cout es para que imprima un texto y cin es para que se guarde una variable.
operaciones
Como aquí se observa, esta compilado el programa que anteriormente había explicado en el post anterior, pero igual dejo el link al final, y como se puede ver, los resultados de las operaciones son correctas.para ver como compilar en cygwin

 

·Fun with numbers· #WSQ03

Well, another homework… haha just kidding. I’m learning how to improve my codes and all that stuff. I started reading some articles and looking for examples in c++, as I said previously, I didn’t remember how to write in c++. I spent a time exploring this helpful page. There a lot of tutorials in c++ and references.

Captura de pantalla 2016-01-22 a las 12.03.43

After reading for a while some tutorials and articles, I decided to start writing my code. My objective was to create a program that given two numbers, it could calculate different operations. I looked in some of my classmate’s programs in order to remember how to write all de cout and cin stuff.

And here is the result, after a few mistakes and trying to figure it out what was wrong, my program was finally running!

Captura de pantalla 2016-01-22 a las 12.16.38

And here is my program working in Terminal…

Captura de pantalla 2016-01-22 a las 12.18.30

Also, you can see my code on GitHub here

Captura de pantalla 2016-01-22 a las 12.20.30

Alex H.

24294566811_7004231734_k
Another Sunrise over the Alps by Rogg4n Link on Flickr: https://www.flickr.com/photos/128294308@N05/24294566811/in/explore-2016-01-14/

PC Setup #WSQ01

In this post I’ll talk about my pc setup :v

CODE EDITORS

I began downloading the editor Atom:

Atom

After the download I customized my Atom and downloaded a theme for it. The theme is An Old Hope.

AtomDesktop.png

A friend also suggested me to use instead of Atom the editor Notepad++.

Notepad++.png

 

COMPILER

For the compiler I downloaded Cygwin which was the suggested by the professor.

Cygwin

This is Cygwin executed in my computer, it is only a “Terminal”.

CygwinDesktop

GITHUB

For the social editor GitHub I needed to create an account, and then  just configure the software. 

GitHub.png

And…

The desktop version is this:

GitHubDesktop.png