Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~265 People Reached
Favorite Forums
Favorite Tags
c++ x 5
Member Avatar for gokhanxyz

[CODE]template <class T> class Node{ private: T data; Node<T> *ptr; public: void set_data(T parametre){ data = parametre; } void set_ptr(Node<T> *ptr){ this->ptr = ptr; } Node<T> * get_ptr(void){ return ptr; } T get_data(void){ return data; } }; template <class Type> class Stack{ private: Node<Type> *head; public: Stack(void){ head = 0; …

0
49
Member Avatar for gokhanxyz

[CODE] cout<<"Enter the first string:"; string first_string; getline(cin,first_string); cout<<"Enter the second string:"; string second_string; getline(cin,second_string);[/CODE] when the code is as above the there is nothing read through the strings. [CODE]cout<<"Enter the first string:"; string first_string; getline(cin,first_string); getline(cin,first_string); cout<<"Enter the second string:"; string second_string; getline(cin,second_string); getline(cin,second_string);[/CODE] however, if the code is …

Member Avatar for Ancient Dragon
0
81
Member Avatar for gokhanxyz

Does the constructor create an instance of a class? or is it a member function of a class that is invoked automatically after the creation of the object is compeleted? same question about the destructor; does it deallocate the object itself or does it have the responsibility of making the …

Member Avatar for StuXYZ
0
135