Skip to content

AUTh-CSAL/c-cpp-basic-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

C / C++ Basic Examples

To be used in course 050 - Parallel and Distributed Systems taught in Aristotle University of Thessaloniki.

Examples demonstrating basic concepts including:

  • pointers (reverseArray)
  • recursive data structures (tree)
  • recursive functions (printInorder)
  • templates
  • function pointers

Running

# Clone the repository
$ git clone https://github.com/AUTh-csal/c-cpp-basic-examples

$ cd c-cpp-basic-examples

# Compile the examples
$ make all
...
$ make test

----------- Running mapReduce: bins/mapReduce.o
1 4 27 256 3125 
3413
hello world

----------- Running treeInorder: bins/treeInorder.o
4 2 5 1 3 

----------- Running reverseArray: bins/reverseArray.o
987654321
987654321

Releases

No releases published

Packages

No packages published