-
Notifications
You must be signed in to change notification settings - Fork 0
/
parsingStr.h
60 lines (53 loc) · 1.38 KB
/
parsingStr.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/**
* File: parsingStr.h
* Author: Ashley Lu Couch
* Assignment: Lab 4
* Course: CSI 1440
* Due Date: 2/13/2019
*
* Date Modified: 3/25/2019
* -Redid the pages that were missing
*
* Date Modified: 2/13/2019
* -created
*
* This Program is four functions that let a user parse strings
* The Functions are: mostFrequent(), leastFrequent(),
* moveToEnd(), and stuGetLine()
*
*/
#ifndef LAB4REDO_PARSINGSTR_H
#define LAB4REDO_PARSINGSTR_H
#include <iostream>
using namespace std;
/**
* mostFrequent
*
* @param string: the string to be checked for frequency
* @return char of the character that occurs most frequent
*/
char mostFrequent(char* string);
/**
* leastFrequent
*
* @param string: the string to be checked for frequency
* @return char of the character that occurs least frequent
*/
char leastFrequent(char* string);
/**
* moveToEnd
*
* @param string: The styring to be altered
* @param ch: the character from the string passed by reference and to be moved
*/
void moveToEnd(char* string, char* ch);
/**
* stuGetLine
*
* @param stringR: the string to be returned by reference
* @param string: the string to copy from
* @param delim: that character that terminates the copy
* @param capacity: the capacity of stringR
*/
void stuGetLine(char* stringR, const char* string, char delim, int capacity);
#endif //LAB4REDO_PARSINGSTR_H