Skip to content

Hi! I have added my name #59

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ A repo for Contribution done during HacktoberFestKarunya 2019
```


### https://docs.google.com/presentation/d/1KTmGjuUhnXCPwni3B8-mLYL-8ygUHl1x5BfxVDuJ3UM/edit?usp=sharing


38 changes: 37 additions & 1 deletion third/third.md
Original file line number Diff line number Diff line change
@@ -1 +1,37 @@
Third year contribution are kept under this profile
// CPP program to demonstrate working of STL stack
#include <iostream>
#include <stack>
using namespace std;

void showstack(stack <int> s)
{
while (!s.empty())
{
cout << '\t' << s.top();
s.pop();
}
cout << '\n';
}

int main ()
{
stack <int> s;
s.push(10);
s.push(30);
s.push(20);
s.push(5);
s.push(1);

cout << "The stack is : ";
showstack(s);

cout << "\ns.size() : " << s.size();
cout << "\ns.top() : " << s.top();


cout << "\ns.pop() : ";
s.pop();
showstack(s);

return 0;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add thes lines of code in different file, just add your name in read me :)

Please push the changes after doing.