Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
stack::emplace for 30-second c++
//g++ 5.4.0 #include <iostream> #include <stack> #include <string> int main() { std::stack<std::string> st; // Add some strings to the stack st.emplace("C++ world"); st.emplace("Hello"); std::cout << st.top(); st.pop(); std::cout << ", " << st.top() << std::endl; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Dec to Bin
Średnia bez zera
mergesort tree
Ultimo intento
Days in month database using unordered_map
Kalkulator z bajerami
Weighted Average
Chinu
Tree
List add v2
Please log in to post a comment.