-
Notifications
You must be signed in to change notification settings - Fork 0
/
reverse_more.h
38 lines (34 loc) · 1.21 KB
/
reverse_more.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
//
// Created by jpenguin on 3/7/22.
//
#ifndef REVERSE__REVERSE_MORE_H_
#define REVERSE__REVERSE_MORE_H_
#include <string>
#include <stack>
class ReverseMore {
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:
std::stack<char> to_reverse_; // Uses std::stack implementation
};
#endif //REVERSE__REVERSE_MORE_H_