cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Stacks. C++
Stacks. C++
Nov 8, 2014 at 10:32am UTC
infected mushroom
(1)
Thanks
Last edited on
Nov 8, 2014 at 7:44pm UTC
Nov 8, 2014 at 11:01am UTC
Peter87
(11238)
If by stack you mean std::stack or if the stack has a properly implemented
copy assignment operator
you can simply do
s2 = s1;
Topic archived. No new replies allowed.