style: rename stack.h to stack.hpp

This commit is contained in:
piotr.idzik
2022-10-14 16:19:20 +02:00
parent 09168c736a
commit 2205c6f1ca
3 changed files with 6 additions and 6 deletions

View File

@@ -1,10 +1,10 @@
/** /**
* @file stack.h * @file stack.hpp
* @author danghai * @author danghai
* @brief This class specifies the basic operation on a stack as a linked list * @brief This class specifies the basic operation on a stack as a linked list
**/ **/
#ifndef DATA_STRUCTURES_STACK_H_ #ifndef DATA_STRUCTURES_STACK_HPP_
#define DATA_STRUCTURES_STACK_H_ #define DATA_STRUCTURES_STACK_HPP_
#include <cassert> #include <cassert>
#include <iostream> #include <iostream>
@@ -153,4 +153,4 @@ class stack {
int size; ///< size of stack int size; ///< size of stack
}; };
#endif // DATA_STRUCTURES_STACK_H_ #endif // DATA_STRUCTURES_STACK_HPP_

View File

@@ -1,6 +1,6 @@
#include <iostream> #include <iostream>
#include "./stack.h" #include "./stack.hpp"
int main() { int main() {
stack<int> stk; stack<int> stk;

View File

@@ -14,7 +14,7 @@
#include <iostream> #include <iostream>
#include <string> #include <string>
#include "./stack.h" #include "./stack.hpp"
int main(int argc, char* argv[]) { int main(int argc, char* argv[]) {
double GPA; double GPA;