Skip to content

Commit 2205c6f

Browse files
committed
style: rename stack.h to stack.hpp
1 parent 09168c7 commit 2205c6f

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

data_structures/stack.h renamed to data_structures/stack.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/**
2-
* @file stack.h
2+
* @file stack.hpp
33
* @author danghai
44
* @brief This class specifies the basic operation on a stack as a linked list
55
**/
6-
#ifndef DATA_STRUCTURES_STACK_H_
7-
#define DATA_STRUCTURES_STACK_H_
6+
#ifndef DATA_STRUCTURES_STACK_HPP_
7+
#define DATA_STRUCTURES_STACK_HPP_
88

99
#include <cassert>
1010
#include <iostream>
@@ -153,4 +153,4 @@ class stack {
153153
int size; ///< size of stack
154154
};
155155

156-
#endif // DATA_STRUCTURES_STACK_H_
156+
#endif // DATA_STRUCTURES_STACK_HPP_

data_structures/test_stack.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include <iostream>
22

3-
#include "./stack.h"
3+
#include "./stack.hpp"
44

55
int main() {
66
stack<int> stk;

data_structures/test_stack_students.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include <iostream>
1515
#include <string>
1616

17-
#include "./stack.h"
17+
#include "./stack.hpp"
1818

1919
int main(int argc, char* argv[]) {
2020
double GPA;

0 commit comments

Comments
 (0)