my knowledge of programming for you

Hello everyone. I offer my knowledge of programming (C, C++, C#, Java, Android, MS SQL, Oracle). write, call me via skype:
igor_shpin
I don't use Skype, but I could reeeeally use your help. Do you have an email address?
@gift81

Your profile is very sparse. And you're only posted your offer of help so far, so people won't have much idea about you.

You prob. need to explain a bit more about your background. And answer some regular questions!

I see you posted an offer of help back in Feb, and didn't get any (?) takers back then. Prob. due to lack of info?!
Last edited on
Here's a problem for you, gift81:

I am building a stack class on top of my list class. I can't do it to save my life. Here is my list class, so can someone show me how to combine the two. And also, what is the point of doing so, if I can't access my list methods from the stack objects?

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// Class declarations
class list
{
public:
    // Typedefs and member constants
    typedef char value_type;
    typedef std::size_t size_type;
    static const size_type CAPACITY = 1000;

    // Constructor functions
    list();
    list(list&);

    // Modification member functions
    void insertBefore(value_type);
    void insertAfter(value_type);
    void replace(value_type);
    void erase();
    void clear();
    void reverse();
    void swap(list& swapList);

    // Constant member functions
    bool is_empty();
    void front();
    void end();
    void prev();
    void next();
    int getPos();
    void setPos(int);
    value_type getElement();
    size_type size();

    // Friend functions
    friend ostream& operator <<(ostream& outs, list& a);
    friend void operator +(list a, list b);

  private:
    value_type myList[CAPACITY];// Array to hold list
    size_type mySize;           // Keeps track of how large the array is
    size_type pos;              // Current position within array
};


Here is the stack definition that I currently have, but it doesn't work. I keep getting a ton of errors that say "reference to stack is ambiguous."

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
class stack
{
public:
    // Typedefs and member constants
    typedef size_t size_type;
    typedef char value_type;
    static const size_type CAPACITY = 1000;

    // Constructors
	stack();                    // Starts a new empty stack}
	stack(stack& stackToCopy);  // Copies a stack when declaring new stack

	// Modification member functions
	void push(const value_type& entry);
	void pop();

	// Constant member functions
	value_type top() const;     // Returns top value in array
	size_type size() const;     // Returns size of array
	bool is_empty() const;      // Checks to see if array is empty

private:
	list myStack;	            // Partially filled array
};


From here, what do I do? How do I use both in a program?
Last edited on
Topic archived. No new replies allowed.