mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-05-07 05:42:03 +08:00
style: rename stack.h to stack.hpp
This commit is contained in:
@@ -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_
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
#include "./stack.h"
|
#include "./stack.hpp"
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
stack<int> stk;
|
stack<int> stk;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user