Skip to main content
Contents Index
Search Book
Search Results:
No results.
Read aloud
Readability settings Prev Up Next Scratch ActiveCode Profile
title here
\(
\newcommand{\lt}{<}
\newcommand{\gt}{>}
\newcommand{\amp}{&}
\definecolor{fillinmathshade}{gray}{0.9}
\newcommand{\fillinmath}[1]{\mathchoice{\colorbox{fillinmathshade}{$\displaystyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\textstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptscriptstyle\phantom{\,#1\,}$}}}
\)
Exercises 6.8 Exercises
This chapter does not have automatically graded exercises like other ones. Instead, it includes open ended activities to explore what is covered in this chapter.
1.
In the development environment of your choice, set up a multiple file project. It should consist of:
A .cpp file that has a simple function like int countSpaces(const string& text);.
A .h file that declares that function.
A second .cpp file with a main function that uses that function and includes the .h file.
2.
In the development environment of your choice, set up a multiple file project. It should consist of:
A .cxx file that exports a module called CountSpaces. It should define and export a function called int countSpaces(const string& text);.
A second .cpp file with a main function that uses that function and imports the CountSpaces module.
You have attempted
of
activities on this page.