CSCI 103L - Fall 2024 Introduction to Programming

Unit 5 Exercises

Here is a C++ scratchpad:

cpp/scratch

Constructors And Const

cpp/cs104/classes/ctor-default
cpp/cs104/classes/ctor-default-arrays
cpp/cs104/classes/ctor-dtor-members
cpp/cs104/classes/ctor-init-list
cpp/cs104/classes/ctor-init-list2
cpp/cs104/classes/ctor-init-list-shadow
cpp/cs104/classes/default-args
cpp/cs104/classes/preprocessor
cpp/cs104/classes/const_members
cpp/cs104/classes/const_members2
cpp/cs104/classes/const_return

Inheritance

cpp/cs104/inheritance/person_stu_ex
cpp/cs104/inheritance/public_private_inh
cpp/cs104/inheritance/con_des

Polymorphism

cpp/cs104/polymorphism/inh-hier
cpp/cs104/polymorphism/shapes
cpp/cs104/polymorphism/bracketer
cpp/cs104/polymorphism/virtfunc2
cpp/cs104/polymorphism/private_inh

Streams

cpp/sstreams/examples/stringstream_in
cpp/sstreams/examples/stringstream_out
cpp/sstreams/date
cpp/sstreams/wordcount-all
cpp/sstreams/wordcount
cpp/sstreams/wordcount_parens

Exceptions

cpp/cs104/exceptions/divide1
cpp/cs104/exceptions/divide_assert
cpp/cs104/exceptions/divide_throw_only
cpp/cs104/exceptions/divide_throw_catch_primitive
cpp/cs104/exceptions/divide_throw_catch_main
cpp/cs104/exceptions/divide_throw_same_type
cpp/cs104/exceptions/divide_std_except
cpp/cs104/exceptions/divide_rethrow
cpp/cs104/exceptions/linked_list_get