mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-02-03 02:25:57 +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
|
||||
* @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 <cassert>
|
||||
#include <iostream>
|
||||
@@ -153,4 +153,4 @@ class stack {
|
||||
int size; ///< size of stack
|
||||
};
|
||||
|
||||
#endif // DATA_STRUCTURES_STACK_H_
|
||||
#endif // DATA_STRUCTURES_STACK_HPP_
|
||||
@@ -1,6 +1,6 @@
|
||||
#include <iostream>
|
||||
|
||||
#include "./stack.h"
|
||||
#include "./stack.hpp"
|
||||
|
||||
int main() {
|
||||
stack<int> stk;
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
#include "./stack.h"
|
||||
#include "./stack.hpp"
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
double GPA;
|
||||
|
||||
Reference in New Issue
Block a user