初始化第二题
This commit is contained in:
@@ -7,3 +7,4 @@ add_executable(test1
|
|||||||
Stack.h
|
Stack.h
|
||||||
Stack.cpp
|
Stack.cpp
|
||||||
test1.cpp)
|
test1.cpp)
|
||||||
|
add_executable(test2 test2.cpp)
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
//Stack.cpp
|
||||||
#include "Stack.h"
|
#include "Stack.h"
|
||||||
#include<iostream>
|
#include<iostream>
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
//Stack.h
|
||||||
#ifndef STACK_H
|
#ifndef STACK_H
|
||||||
#define STACK_H
|
#define STACK_H
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
//test1.cpp
|
||||||
#include"Stack.h"
|
#include"Stack.h"
|
||||||
#include<iostream>
|
#include<iostream>
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
//test2.cpp
|
||||||
|
#include<iostream>
|
||||||
|
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user