小编Ank*_*rya的帖子

如何在 Android Studio IDE 中自定义硬换行垂直线以进行代码格式化

当我应用“格式化代码”时,即使我的屏幕有足够的空间将其显示在一行上,我的代码行也会自动向下行(多行)。

在此输入图像描述

我看到它取决于垂直线(图像中的红色),我怎样才能删除这条线或加宽它?

我的语言是:Dart

dart android-studio flutter

8
推荐指数
1
解决办法
3260
查看次数

Dev C++ 没有检测到关于只使用带有 cout 的单尖括号的错误?

我有一个用 C++ 实现邻接矩阵的程序。
这是我的代码-

#include<iostream>

using namespace std;

void addEdge(int * add){
    cout<<"Edge added successfully.\n";
    *add = 1;
}

int main(){
    
    int vertex;
    
    cout<<"Enter number of vertices in the graph: ";
    cin>>vertex;
    
    int adjMat[vertex][vertex];
    
    for(int i=0;i<vertex;i++){
        for(int j=0;j<vertex;j++){
            adjMat[i][j] = 0;
        }
    }
    
    cout<<"\n";
    cout<<"Add edges (from and to): ";
    int from,to;
    while(cin>>from>>to){
        if((from >= vertex || from < 1) || (to >= vertex || to < 1)){
            cout<"Warning: Out of bound index.\n";
        }else{
            addEdge(&adjMat[--from][--to]);
        }
    }
    
    cout<<"\n";
    for(int i=0;i<vertex;i++){ …
Run Code Online (Sandbox Code Playgroud)

c++ dev-c++

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

标签 统计

android-studio ×1

c++ ×1

dart ×1

dev-c++ ×1

flutter ×1