Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
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
begin_end.cpp
container store pointer
LP(Multi)
test yield
GenericPacker
c1
FindMissingBinom
Discounting Future Stream
creating triangle using nested loop
TempSpecial2