-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreverse.h
More file actions
38 lines (34 loc) · 1.19 KB
/
reverse.h
File metadata and controls
38 lines (34 loc) · 1.19 KB
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
//
// Created by jpenguin on 3/7/22.
//
#ifndef REVERSE__REVERSE_H_
#define REVERSE__REVERSE_H_
#include <string>
#include "StackType.h" // Stack implementation from the book
class Reverse {
public:
/****************************************************************************
* Function Name: ReadFile()
* Parameters: filename
* Return Value: void
* Purpose: Read input file character by character and put it in stack
****************************************************************************/
void ReadFile(std::string &);
/****************************************************************************
* Function Name: ReadString()
* Parameters: None
* Return Value: void
* Purpose: Read string input character by character and put it in stack
****************************************************************************/
void ReadString();
/****************************************************************************
* Function Name: PrintStack()
* Parameters: None
* Return Value: void
* Purpose: print stack from end to beginning
****************************************************************************/
void PrintStack();
private:
StackType to_reverse_;
};
#endif //REVERSE__REVERSE_H_