My first code!

This is my first code and my first video showing what I did. I know is not a perfect video but the next ones will be better. So, I hope you can use this 😉

Here’s the link of the video:

https://www.dropbox.com/s/zo2ifp75iwpjzh8/Mi%20pel%C3%ADcula.mp4?dl=0

The instructions was:

Get your program to print (on the terminal/shell) the message “Hello World”. Yes, that simple. Remember you are doing this at the terminal, NOT inside an IDE like Code::Blocks, Eclipse, Xcode.

For this code my only helper was my teacher (https://twitter.com/ken_bauer). And here is a picture of it:

helloworld

With this code I learn how to introduce a text line. We use:

*#include <iostream> (Introduce the library).

*Using namespace std (To use cout as simple as you can see [without std::cout] because we know that we are going to use it several times).

*int main() (To introduce functions).

*COUT (to WRITE A TEXT LINE!).

*return 0 (it means that we finish the code with no problems).

(Remember to use the keys correctly).

To run the program we use CYGWIN:

helloworldcyg.png

STEPS:

  1. Write the location of the file.
  2. Use “ls” and it shows you the list of the folder.
  3. Use “g++” to compile and then write the file’s name. (If it shows you an error is because something in the code is wrong).
  4. Finally write “./a.exe” to execute the program.

 

Thank you for see my post and see you in my next. Have a nice day.

CC BY-SA 4.0 My first code! by sercho93 is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.