CSCI 202: Object-Oriented Programming
Programs designed in class
- Passing parameters to functions
- by value: pass_val.cpp
- by reference: pass_ref.cpp and using the C-syntax pass_ref.c
- passing 1-dim and 2-dim arrays: passarr.cpp
- passing/returning vectors: passvect.cpp
- passing/returning structures: passstruct.cpp
- Local static variables: static.cpp
- Returning arrays from functions:
- as a static local variable: retarray_s.cpp
- using a dynamically allocated memory in C: retarray.c
- same as above but in C++: retarray.cpp
- Using default arguments: default.cpp
- Returning by reference: returnref.cpp
- Overloading functions: overload.cpp
- Using inline functions: bubble sort of the data file
- comparison of te running time: inline.cpp