Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
~17.9K People Reached
Favorite Forums
Favorite Tags
c++ x 2
Member Avatar for aravasai

can any one please identify the mistake in my code??? my code is:: [code] #include<iostream> using namespace std; class Stack{ int *arr; int size; int top; public: Stack(){arr = NULL; top = 0;} Stack(int sz){ arr = new(nothrow) int[sz]; if(!arr) exit(1); size = sz; top = 0; } ~Stack(){delete []arr;} …

Member Avatar for Stinomus
-1
18K