Professional Documents
Culture Documents
DEFINE VA TYPEDEF - No
DEFINE VA TYPEDEF - No
DEFINE
&
TYPEDEF
1 28tech.com.vn
28TECH
Become A Better Developer
1. Typedef: Type Definition
2 28tech.com.vn
28TECH
Ví dụ
Become A Better Developer
#include <bits/stdc++.h>
using namespace std;
Chú ý : typedef sẽ kết
typedef long long ll; thúc bằng dấu ;
typedef int songuyen;
typedef string xau;
typedef vector<int> vi;
typedef pair<int, int> pi;
int main(){
ll x; // long long x
songuyen y; // int y
xau z; // string x
vi a; // vector<int> a
pi b; // pair<int, int> b
}
3 28tech.com.vn
28TECH
2. Define
Become A Better Developer
4 28tech.com.vn
28TECH
Become A Better Developer
5 28tech.com.vn
28TECH
Become A Better Developer
6 28tech.com.vn
28TECH
Become A Better Developer
TYPEDEF #DEFINE