Tag Archives: #mastery01

Mastery1

 

 

Create and run C++ file

Although sometimes it seems a bit complex, it’s actually very easy to compile and run a program, let’s go step by step.

On the first screenshot we can see the directory we need to follow on cygwin, it’s not the same for every folder, that means you need to change it to wherever your source code is saved.

It always needs to start with cd /cygdrive/…… and then as you can see mine has a few directions.

Also to type in a basic program your code must start with

<iostream>

using namespace std;

int main()

and you start typing your code

I just typed in a “Hello from Mexico with Love” as an example, once your done with your code you need to save like this “whatevernameyouwant.cpp” be sure to type in the .cpp so that the compiler (cygwin) can know that we have a C++ file.

Then to compile it on cygwin you type the g++ command and the name of your program with .cpp at the end.

After that you type in an “ls” command to check your programs on that folder.

And to finish you just need to run in with ./a.exe

The screenshot shows every command, I hope it helps.

#Mastery01

Mastery 01 Tutorial Video

Here is a link to my Mastery 1 tutorial video!  Hope you enjoy!

https://www.youtube.com/watch?v=pyQie42mkeU

 

Mastery01

Masteries

  https://docs.google.com/file/d/0B7UlS92s1jhucEJIX0dEWUdzRlE/edit

  https://docs.google.com/file/d/0B7UlS92s1jhuZHNOZUlucG1nZE0/edit

  https://docs.google.com/file/d/0B7UlS92s1jhudXVaNkdCb0xmbEU/edit

  https://docs.google.com/file/d/0B7UlS92s1jhuckN4MlVQSFk2eEk/edit

  https://docs.google.com/file/d/0B7UlS92s1jhuaTJOSWlKZmUzZUk/edit

  https://docs.google.com/file/d/0B7UlS92s1jhub2xadFJpMkhNMU0/edit

  https://docs.google.com/file/d/0B7UlS92s1jhuX2F0TU5PTF9FVXc/edit

  https://docs.google.com/file/d/0B7UlS92s1jhuaW1DNFFfY2RtRTA/edit

  https://docs.google.com/file/d/0B7UlS92s1jhuaW1DNFFfY2RtRTA/edit

  https://docs.google.com/file/d/0B7UlS92s1jhuaW1DNFFfY2RtRTA/edit

 

Mastery 01

  1. Ability to create Python file and run from command line

To be able to run a program in the command line, you need to write cd c:/users/”your user”/desktop . If you have your file in another part of your computer, put that instead of “desktop”.

After that you’ll have to write “python” before writting the name of your program. This way, the computer will know that it’s going to use python to open that program.Mastery 01

Mastery 01

#mastery01 #TC1017

Runing a Python File from the command line #Mastery01 #TC1014

I just recorded a video showing how to run a Python3 file from the command line.

Antonio Yosefat Juárez Quintero

Link: https://www.youtube.com/watch?v=YNJKseRbg-k

A01228128

Long and detailed video for Masteries