Collection of example codes illustrating using C++ on the FASRC cluster.
- Example 1:
sum.cpp
computes integer sum from 1 to N (N is read from command line) - Example 2:
sum2.cpp
variation of the above program (sum.cpp) - Example 3:
allocate.cpp
illustrates using dynamic memory - Example 4:
matvec.cpp
performs matrix-vector multiplication - Example 5:
dot_prod.cpp
computes DOT product of 2 random vectors - Example 6:
arrays_and_pointers.cpp
illustrates arrays and pointers - Example 7:
void_point.cpp
void pointers - Example 8:
function_factorial.cpp
illustrates recursion - Example 9:
point_func.cpp
pointers to functions