diff --git a/data_structures/stack.h b/data_structures/stack.hpp similarity index 96% rename from data_structures/stack.h rename to data_structures/stack.hpp index ac190f1c3..d3b8cd7df 100644 --- a/data_structures/stack.h +++ b/data_structures/stack.hpp @@ -1,10 +1,10 @@ /** - * @file stack.h + * @file stack.hpp * @author danghai * @brief This class specifies the basic operation on a stack as a linked list **/ -#ifndef DATA_STRUCTURES_STACK_H_ -#define DATA_STRUCTURES_STACK_H_ +#ifndef DATA_STRUCTURES_STACK_HPP_ +#define DATA_STRUCTURES_STACK_HPP_ #include #include @@ -153,4 +153,4 @@ class stack { int size; ///< size of stack }; -#endif // DATA_STRUCTURES_STACK_H_ +#endif // DATA_STRUCTURES_STACK_HPP_ diff --git a/data_structures/test_stack.cpp b/data_structures/test_stack.cpp index aa636916f..965dab017 100644 --- a/data_structures/test_stack.cpp +++ b/data_structures/test_stack.cpp @@ -1,6 +1,6 @@ #include -#include "./stack.h" +#include "./stack.hpp" int main() { stack stk; diff --git a/data_structures/test_stack_students.cpp b/data_structures/test_stack_students.cpp index a6048c4c9..b28055be3 100644 --- a/data_structures/test_stack_students.cpp +++ b/data_structures/test_stack_students.cpp @@ -14,7 +14,7 @@ #include #include -#include "./stack.h" +#include "./stack.hpp" int main(int argc, char* argv[]) { double GPA;