Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- ======================
- [ ___T_ ]
- [ | 6=6 | =>HI :-)]
- [ |__o__| ]
- [ >===]__o[===< ]
- [ [o__] ]
- [ .". ]
- [ |_| ]
- [ ]
- ======================
- */
- #include<bits/stdc++.h>
- using namespace std;
- using lli = int64_t;
- void print_stack(){
- int n;
- cin >> n;
- stack<int> s;
- for(int i = 0; i < n; i++){
- int in;
- cin >> in;
- s.push(in);
- }
- while(!s.empty()){
- cout << s.top() << " ";
- s.pop();
- }
- }
- void print_queue(){
- queue<int> q;
- int n;
- cin >> n;
- for(int i = 0; i < n; i++){
- int in;
- cin >> in;
- q.push(in);
- }
- while(!q.empty()){
- cout << q.front() << " ";
- q.pop();
- }
- }
- void string_to_int(){
- string s;
- cin >> s;
- int n = 0;
- stringstream convert(s);
- convert >> n;
- cout << n << "\n";
- }
- void int_to_string(){
- int n;
- cin >> n;
- string s = to_string(n);
- cout << s << "\n";
- }
- int main(){
- ios::sync_with_stdio(false);
- cin.tie(nullptr);
- cout.tie(nullptr);
- //print_stack();
- //print_queue();
- //string_to_int();
- int_to_string();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement