-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathBai64.cpp
More file actions
42 lines (32 loc) · 705 Bytes
/
Bai64.cpp
File metadata and controls
42 lines (32 loc) · 705 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
Lớp string và các phương thức của nó
- hàm tạo
- getline();
- length();
- push_back();
- pop_back();
*/
#include<iostream>
#include <string>
using namespace std;
int main() {
string name = "Than Trieu";
for (size_t i = 0; i < name.length(); i++)
{
//cout << name[i] << endl;
cout << name.at(i) << endl;
}
/*string name;
name = "Than Trieu";
name = "Thu Tran";
name = "Hoa Nguyen";
string address("Ha Noi");
string address1(address);
string nX(100, 'X');
cout << nX << endl;
cout << "nX co " << nX.length() << " ki tu";*/
/*string fullName;
cout << "Enter your full name: ";
getline(cin, fullName);
cout << "Hello " << fullName << "!" << endl;*/
}