小编jed*_*ode的帖子

如何在 Visual Studio 2022 中删除 git 差异指示器?

我今天打开 Visual Studio 2022,并在左侧边栏上看到这些符号。

在此输入图像描述

我没有启用这些,它们只是出现了。如果我点击它们,它们会显示:

在此输入图像描述

它们真的很烦人,特别是因为右侧边栏上出现的红色箭头几乎与错误指示器的颜色相同。

在此输入图像描述

我找不到关闭这些功能的选项,也找不到在线解决方案。有谁知道如何摆脱它们?

visual-studio visual-studio-2022

16
推荐指数
2
解决办法
2210
查看次数

Cannot create multiple instances of a class?

My problem is that i want to create multiple instances of my upgrade class, for different upgrades. Maybe it's because i'm used to java but i can't just type Source first("first"), second("second"); because if i do and call first.getName() for example, i get "second". I made an example file where i only wrote what i'm struggling with, so you don't have to try to understand my mess of a code.

Source.cpp: I want multiple instances of this class.

#include …
Run Code Online (Sandbox Code Playgroud)

c++

3
推荐指数
1
解决办法
72
查看次数

标签 统计

c++ ×1

visual-studio ×1

visual-studio-2022 ×1