-
Notifications
You must be signed in to change notification settings - Fork 1
๐ถData Structure
sery270 edited this page Aug 24, 2020
·
1 revision
๐์คํ
#include <stack>
stack<char> st;๐ํ
#include <queue>
queue<int> q;๐๋ฑ
#include <deque>
deque<int> dq;
//๋ฑ์ด ์๋๋ฐ, ์ ํ๋ฅผ ์ธ ๊น..?๐๋ฌธ์์ด
string s;
- ์ ๋ ฅ
cin >> s;- ์ถ๋ ฅ
cout << s;- ๊ด๋ จ ํค๋
#include <cstdio>
#include <iostream>- ๋ฌธ์์ด ๋น๊ต
s.compare("add");s == "add"
//char[]๋ ==๋ก ๋น๊ต ๋ถ๊ฐ๋ฅ- ๋ฌธ์์ด ๊ธธ์ด
s.length() // 3