Home / setup 01 SETUP 01 21/12/2021 trang chủ | | | InstallTo start, tải về Dev C++ 5.9.2. It"s completely không tính phí. Later versions have more features in terms of editing, completion, etc, but have sầu issues with the debugger. Use at your own risk.Bạn đang xem: Setup 01Default settings should be correct:Creating a ProjectOnce the install completes, create a project:Select “console application,” “C++ project,” and name your project:Save sầu your project in a new folder:Your project should now look like this:Save the main.cpp tệp tin (lớn the same folder), rename it if you’d like:You should now have sầu a working project. To change compiler/linker settings:Here you can change project settings lượt thích name, type, icon, etc. To enable debugging information, enable Compiler > Linker > Generate Debugging Information (-g3). I"d also recommover enabling warnings (Compiler > Warnings > Show Most Warnings, Show More Warnings). For now, you will only be interested in the “General,” “Output đầu ra,” & maybe the “Compiler” và “Directories” tabs.BuildIf you are satisfied with your settings, write a “hello world” program & press F11 to lớn compile & run:If you phối up your project correctly, you should get what you expect.Xem thêm: Lịch Thi Đấu Sea Games 31 - Lịch Thi Đấu Môn Bóng Đá Nam Sea Games 2021Adding FilesTo add non-code files to your project, such as text or data for input:To add a class:Here, name your class and add a default constructor/destructor:An .h and .cpp file for your class should appear. Save them both to lớn your project thư mục.In the .h tệp tin, you can replace all of the # statements with “#pragma once” if you’d lượt thích. This makes sure that if your .h tệp tin would be included more than once, it is only included once:To use your class in the main tệp tin, simply include your new .h tệp tin, using quotes. Try compiling this, to make sure everything is working. To add more classes, simply repeat this process.Finally, you are finished! Remember to save your project settings when you cthua trận Dev C++. Your project folder should now have sầu several unfamiliar files. The .dev tệp tin is your project, và is what you will open when you want khổng lồ work on your project. The .layout, .o, và maketệp tin files are all byproducts of compiling with multiple files, so leave sầu them be và you should be good.