DEV Community

Long Nguyễn Xuân
Long Nguyễn Xuân

Posted on • Edited on

1

thiết lập môi trường để viết code C/C++ trên Windows với Code::Blocks

Lưu ý: Nửa sau bài viết có hướng dẫn xử lý cái kiếp nạn số 1 trên đường thỉnh kinh C/C++

  • download bộ cài đặt hoặc bản portable theo hệ điều hành mà mình đang dùng tại đây

  • mở codeblocks.exe và tạo 1 project mới

Image description

  • chọn Console application

Image description

  • chọn C hoặc C++ theo nhu cầu bài tập, bấm Next

Image description

  • đặt tên project và chọn nơi lưu

Image description

  • ở màn hình tiếp theo, sẽ chọn Compiler, mặc định là GNU GCC Compiler

Image description

  • click Build and Run (hoặc bấm F9), và gặp kiếp nạn số 82, à nhầm kiếp nạn số 1,

Image description

  • đọc lỗi, xử lý lỗi theo link nàyF9 lại thì sẽ nhận được kết quả

Image description

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

Top comments (0)

The Most Contextual AI Development Assistant

Pieces.app image

Our centralized storage agent works on-device, unifying various developer tools to proactively capture and enrich useful materials, streamline collaboration, and solve complex problems through a contextual understanding of your unique workflow.

👥 Ideal for solo developers, teams, and cross-company projects

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay