美文网首页
head first C++, 1 set up environ

head first C++, 1 set up environ

作者: 彩虹金刚_Q | 来源:发表于2024-09-02 09:57 被阅读0次

    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.

    相关文章

      网友评论

          本文标题:head first C++, 1 set up environ

          本文链接:https://www.haomeiwen.com/subject/pxjhljtx.html