Skip to content

duytoxic/learn-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

một số hàm hay sử dụng trong vector

In kích thước cảu vector

    vector<int> v1;
    cout << v1.size();

Tìm phần tử đầu tiên và cuối cùng

    cout << v1.front() << endl;
    cout << v1.back() << endl;

Tìm phần tử tại vị trí bất kỳ

    cout << v1.at('chi so vi tri') << endl;
    // tính từ 0

Thêm phần tử vào cuối

   v1.push_back(10);

Xóa phần tử ở cuối

    v1.pop_back();

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages