Hello World #WSQ02

So now for the class of Ken, I will show how to print Hello World in python, it´s actually pretty easy in python.

first we will open our IDLE and go to the tab on the upper-left corner where it says File and then go to New File(or you can just press Ctrl+N), this is where we will code all of our programs.

12575752_1136555873023778_668276500_n

after that we can put print(“Hello World”) and it should look like this:

12606763_1136555846357114_995889530_n

And press Run(again, in the upper-left corner) and watch the magic of absolutely nothing any computer can´t do! coungratulations!!! 😀

How this works is that the word “print” prints things on the shell(duhh). After the word print you must open a parenthesis and then

a) if you want to print something consistently, put it inside comillas(” “)

b) if you want to print a variable, just put the name of the variable without comillas, for example

(the first is the last print, I was too lazy to erase it xD)

c) if you want to print a text AND variables, just separate them with a comma.

And now you know how to use print in python 😀 go rock the world!

#WSQ02

“Hello World” #WSQ02

After watching Ken’s video on youtube “LINK” about Hello World on C++

Screenshot1.2.png

I decided to work with my program following his directions, once I did this, it didn’t work for about a day, after this happened I came to school hopping for the best; special thanks to Christian Moreno for helping me out, he told me to download cygwin again and install many components I didn’t have. He said: “Descargalo otra vez, y si no checo tu programa” well the program was correct but the components weren’t.Screenshot2.2

This was the code for Hello World, Christian continued coaching me while we tried to make it work, succesfully he told me that I had compiled correctly; in order to compile you must write “g++” and the name of your program , and that in order to make it work you should always put “./a.exe” in order to execute the program compiled before.Screenshot3.2.png

Finally, after re-downloading cygwin, I was able to run this easy program… Hello World

 

Banana for scale!!

7101134513_5295b936e7_z
JK Brickworks https://www.flickr.com/photos/truedimensions/7101134513/in/photolist-bPvaTF-815sgJ-fap44G-2FJ1Ew-3KpTqJ-nv1Lnt-LkVum-5355XZ-7Y55Te-e5bou-bMW2de-agXchY-byVobx-6UfMT4-fooheV-8zj7hR-ef2zD-qQThR-PA4QL-4TEBQT-irrsTZ-2HUWVX-fzf7gt-5mnJQe-3q89kQ-gEYy44-hja1S-fFiUGo-79jGxr-4EZf6b-7mmnCa-pS5bBo-7w5Bhs-r7AbEi-56GEvw-bziV3g-9p29pc-npX8AN-r5jjNd-gWTn9R-oQnkxj-4dvFCC-5M1hvH-8z3ZBT-3JEzQQ-9JDW8Z-jpgBVS-nnuudg-9iDSQS-8VWDEW

 

 

Coding Hello World (Cygwin)

Primero Tenemos que escribir nuetsro programa en el editor que escogiste, en mi caso Atom. Aqui el Codigo que yo utilizo.

#include <iostream>
using std::cout;

int main()
{
cout << “Hello World”;
return 0;
}

Captura de pantalla 2016-01-19 12.23.46

Tienes que guardarlo en con formato .cpp C:CygwinHomeusername

Despues abres Cygwin y escribes “ls”, en ese momento te mostrará los archivos que tengas en C:CygwinHomeusername

Captura de pantalla 2016-01-19 12.28.02

Lo siguiente que tienes que escribir es “g++ (El nombre exacto de tu archivo)”
tendrás que esperar un poco.

Captura de pantalla 2016-01-19 12.28.18

Lo último que tienes que escribir es “./a.exe” y tu programa correra.

Captura de pantalla 2016-01-19 12.28.27

·Hello World· #WSQ02

After setting up my computer, I had the task of writing the basic code of “Hello World” in C++. The last time I wrote a code in C++ was when I was in high school so there were things that I didn’t remember at all. I had to search the basic commands for C++ and learn them again. After few minutes of writing, my code worked.

Captura de pantalla 2016-01-19 a las 11.57.21

 

Captura de pantalla 2016-01-19 a las 11.51.04

 

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/

WSQ02 Hello World

Open up emacs  and press “control x control f”. This write the name of your program and press enter. I found a really good video about getting use to emacs. Tutorial. Another great page that helped me a lot was this one. C++.

Once you have created your program, go to terminal and press ls. press “cd”and then write the location where you saved your program.Screen Shot 2016-01-18 at 7.12.09 PM.pngScreen Shot 2016-01-18 at 7.15.22 PM.png

As you can see, after you have located your file, write g++, the name of your program and press enter.

Then write ./a.out, the name of your program and press enter.

In the last image you will notice that the program ran perfectly and printed out “Hello World! I’m a c++ program”. In case your wondering what it looks like when there is an error in your program here is another picture.Screen Shot 2016-01-18 at 7.13.27 PM.png