Skip to content

kangwonlee/2018pycpp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python and C/C++ Tutorial : A Comparative Approach

Overview

  • Audiences : Starting graduate students

  • Programming language : Python and C/C++

  • Operating system : Linux

Contents

Ch Sec Subject Linux Python C++
0 0 Overview
Introducing Linux bash
1 Introducing Python
Installing Anaconda
print('Hello World!')
python hello.py
2 Introducing C/C++
Installing g++ and make
printf("Hello World!\n"); / cout << "Hello World\n";
g++ -Wall hello.cpp -o hello && ./hello
1 0 Introducing git
git clone, git config --list, git status, git log, git add -p, git commit -m '<message>', git push -u <remote> <branch>
github, and travis-ci
1 Representing Data types
integers and 2's complements
floating point and complex numbers
characters and strings
list and tuple vs array
dict vs struct and union
2 Operating
+ - * /, %, {++, --}, (//, **)
+= and *= vs assembly
<<, >>, |, &
2 0 Controlling flow : conditional
if-else if-else
switch-case
1 Controlling flow : repetition
for
while
do while
2 Wrapping into Functions and calling by value
3 0 Interpreting Pointers and Calling by Reference
1 Managing memory with malloc and free
2 Opening the hood of python : list of lists and references
4 0 Modularizing and namespaces
1 Instantiating and inheriting classes
2 Controlling access to Attributes
5 0 SciPy Stack : numpy, matplotlib
1 SciPy Stack : scipy, sympy
2 Bridging between Python & C/C++ : cython