Làm thế nào để kiểm tra số chính phương trong C/C++? Bài viết này sẽ hướng dẫn bạn viết một hàm để xác định xem một số có phải là số chính phương không. Sau đó, chúng ta sẽ thảo luận về cách tìm các số chính phương trong một mảng sử dụng C/C++. Tuy […]
#bài tập c++
Bài tập mảng 2 chiều c++ cơ bản và nâng cao có lời giải
Mảng 2 chiều trong C++ là một cấu trúc dữ liệu dùng để lưu trữ thông tin dưới dạng bảng, với mỗi phần tử trong mảng 2 chiều được truy cập thông qua cặp chỉ số hàng và cột. Trong bài viết này, Nguyễn Văn Hiếu sẽ giới thiệu một loạt bài tập liên quan […]
1000 bài tập lập trình của thầy Nguyễn Tấn Trần Minh Khang
Phép toán thao tác bit trong C++ (Bitwise operation)
Trong bài viết này, chúng ta sẽ tìm hiểu về các phép toán thao tác bit (bitwise operation). Trong đơn vị logic số học (nằm trong CPU), các phép toán như: cộng, trừ, nhân và chia được thực hiện ở cấp độ bit. Để thực hiện các phép toán cấp độ bit trong C++, các […]
Tính lũy thừa ma trận trong C/C++
Hướng dẫn cách tính lũy thừa ma trận – Ma trận là một chủ đề không còn xa lạ với những người dấn thân vào ngành lập trình. Trong hầu hết tất cả các nhánh của ngành IT như web, game, AI, lập trình thi đấu,… ma trận đều giữ một vị trí đặc biệt […]