head first C++, 1 set up environ

2024-09-02  本文已影响0人  彩虹金刚_Q

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.

上一篇下一篇

猜你喜欢

热点阅读