Click here to Skip to main content
15,867,453 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
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
Posted
Updated 11-Feb-17 4:20am
Comments
[no name] 11-Feb-17 11:08am    
"(How i)I have tried to implement stack using c++.": Now please explain where you stucked, what the Problem is.
Patrice T 11-Feb-17 11:24am    
And you can't ask teacher or classmates ?
Google don't work in your place ?

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900