head first C++, 1 set up environment

we can prepare for the CSP-J from now on

1st class should be setup C++environment

The IDE I choose is VS studio

we need to New a project instead of a file to make it run well

Gemini is a really good helper

Create a New Project:

Open Visual Studio.

Go to File > New > Project.

Choose Visual C++ under Installed templates.

Select Windows Console Application (or Empty Project if you prefer more control).

Give your project a name and choose a location.

Click OK.

2. Write Your C++ Code:

In the Solution Explorer, double-click the main.cpp file to open it.

Replace the existing code with your C++ code.

3. Build the Project:

Go to Build > Build Solution.

Visual Studio will compile your code and generate an executable file.

4. Run the Executable:

Go to Debug > Start Without Debugging.

The executable will run and display any output in the Output window.

Additional Tips:

Debugging: Use Visual Studio's debugger to step through your code, set breakpoints, and inspect variables.

IntelliSense: Take advantage of Visual Studio's IntelliSense for code completion and suggestions.

Plugins: Explore the vast ecosystem of Visual Studio plugins to enhance your development experience.

Project Properties: Customize your project settings by going to Project > Properties.

Keyboard Shortcuts: Learn and use keyboard shortcuts to improve your productivity.

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容