CSCI 202: Object-Oriented Programming
Programs designed in class
- First program (size of the data types): sizes.c and sizes.cpp
- C and C++ casting: statcast.c and statcast.cpp
- Computing roots of a function: roots.c and roots.cpp
- Working with arrays: arrays.c and arrays.cpp
- Working with C-strings
- using strlen() function: cstrings.c and cstrings.cpp
- converting string into numbers with atoi() and atof(): str2num.c and str2num.cpp
- converting numbers into strings with sprintf(): num2str.c and num2str.cpp
- Working with C++ strings and vectors
- String Tokenizer: strtok.cpp and its C-analog strtok.c
- Adding strings to a vector: vectors.cpp
- Creating a dynamic array (vector of vectors): network.cpp and network.txt
- Insertion sort
- of numbers: sortInt.c and sortInt.cpp
- of C++ strings: sortStr.cpp