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