• Martin Thoma
  • Home
  • Categories
  • Tags
  • Archives
  • Support me

Recent Posts

Stacks in C++

Stacks in C++

Minimum Example #include #include using namespace std; int main(){ stack myStack; myStack.push(5); cout << "Size of stack: " << myStack.size() << endl; myStack.push(4); // get the element on the top cout << "Top: " << myStack.top() << endl; // it does NOT automatically pop! cout << "Top: " << myStack.top() << endl; // pop has … Read More »
  • Martin Thoma - A blog about Code, the Web and Cyberculture
  • E-mail subscription
  • RSS-Feed
  • Privacy/Datenschutzerklärung
  • Impressum
  • Powered by Pelican. Theme: Elegant by Talha Mansoor