Warning: The magic method Slickr_Flickr_Plugin::__wakeup() must have public visibility in /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php on line 152
‘#Mastery1’ Articles at TC101 Fall 2015, Page 2
Introduction to Programming Python and C++

Tag Archives: #Mastery1

Masteries 1 & 2

Here is another video tutorial to create and run C++ files (With Atom and Mac terminal). And create a project in an IDE (Xcode).

Mastery 1.

Description: Ability to create C++ file and run from command line. This is as simple as they’ll get. Enjoy the video: Mastery 1

Masteries 1 and 7!

Here is my first video about the masteries. Using http://www.screencast-o-matic.com which is a realy easy-to-use recording software.

Hope it helps.

It’s about:

  1. Ability to create C++ file and run from command line
  2. Use of comments in C++

#Mastery1 and #Mastery10

#Mastery1: #Mastery10 : As you can see in the video I explain to you in the video how to save a file and to run it, but you also see that I used the most basic command on Python which is « print ». You have to be very careful to write the command in a way… Lire la suite #Mastery1 and #Mastery10

My first Mastery #Mastery1

Mastery 1 consisted of proving that on could create C++ files and run from a command line. I did this following this steps:

1. Start the code in any coding software, I used Atom that can easily be installed after downloading the package from the Atom page on Internet. The code I created was a “Hello World” code: https://github.com/CarlosGallegosT/Codes007/blob/master/Hello%20World 

2. After finishing the code, I saved it as a .cpp so it could be recognized as a C++ file and it colored the commands so each funtion would be recognized.

3. Afterwards, it must be run in a Terminal, I used Cygwin which I installed with the aid of this video: https://www.youtube.com/watch?v=i2h_976SpV0.

4. In order to run it on Windows, one must change the Directory to which Cygwin refers, that is done by used the command cd /cygdrive/c/Users (Your Username and the reference to the location of the file, which could be Documents or Desktop).

5. You should probably check if the file is found on that directory, this is done by typing the command ls that shows exing files on the directory.

5. Furthermore, the file should be compiled by typing c++ (Name of the file).cpp, if it does compiles, no issues should be reported. If a mistake in coding is detected, the file won’t compile and errors will be shown.

6. After successfully compiling, an .exe file is created, which can be confirmed by typing ls. In order to run the program, type ./a.exe to execute and obtain expected output.

7. In order to avoid typing commands all over again after closing the window, you may use the command history, to see previous inputs and select the one you wish to copy by moving with the arrows. 

Here’s an example, with certain features highlighted:

Thanks for reading, I hope this post helps you start programming in C++.

What should you work on?

Week #12 and more partial exams for you.

For this week's readings:
C++ (TC1017) should either be looking at support for your project, ImageMagick C++ libraries are a good start.
Python (TC1014) should be finishing chapter 11 (Dictionaries).