Data Structures & Algorithms in C++
Goodrich, Tamassia, Mount and Goldwasser
Loading...
Searching...
No Matches
Namespaces | Functions
sample_functions.h File Reference
#include <string>
Include dependency graph for sample_functions.h:
This graph shows which files directly or indirectly include this file:

Namespaces

namespace  dsac
 Code from the zyBook "Data Structures and Algorithms in C++" by Goodrich/Tamassia/Mount/Goldwasser.
 
namespace  dsac::primer
 Code from the chapter "A C++ Primer".
 

Functions

int dsac::primer::count (std::string s, char target)
 Returns the number of occurrences of target character in string s.
 
int dsac::primer::count (const char *s, int n, char target)
 Returns the number of occurrences of target character in the n-character array s.
 
void dsac::primer::remove_all (std::string &s, char target)
 Removes all occurrences of target character from string s.