问题描述
你好:)
我正在大学学习软件工程,而且由于生病,我错过了一个非常重要的课程(数据结构)这就是为什么我现在有困难开始。所以我想知道作为初学者我如何能够正确地学习数据结构我在理解和实现方面遇到了问题?
我理解堆栈和链表之类简单事物背后的原理,但我最大的问题是如何实现它,所以我想知道你们是否有任何提示,视频..mm可以帮助我这个 ?
提前谢谢。
我尝试了什么:
我如何尝试使用c ++实现堆栈。
Hello :)
I'm studying software engineering at the university, And i have missed part of a very important course (Data Structures) due to illness and that is why I have now difficulties to get started. So i wonder how can i as a beginner learn data structures properly I'm having problems in understanding and implementation?
I understand the principle behind simple things like stack and linked list, but my biggest problem is how to implement it, so i wonder if you guys have any tip, videos ..mm that can help me with this ?
Thank you in advance.
What I have tried:
How i have tried to implement stack using c++.
#ifndef ISTACK_H
#define ISTACK_H
template <typename T>
class IStack
{
public:
virtual ~IStack() = 0 {};
virtual void push(const T& element) = 0;
virtual T pop() = 0;
virtual T peek() const = 0;
virtual bool isEmpty() const = 0;
};
#endif
推荐答案
这篇关于难以理解数据结构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!