当前位置:网站首页>Resolving C# non-static field, method or property "islandnum.Program.getIslandCount(int[][], int, int)" requires an object reference
Resolving C# non-static field, method or property "islandnum.Program.getIslandCount(int[][], int, int)" requires an object reference
2022-08-02 07:23:00 【xqlily】
Run a piece of code for a two-dimensional array in c#:
When the following code is called in the main function main
getIslandCount(map, row, col);Error in error title:
A non-static field, method or property 'islandnum.Program.getIslandCount(int[][], int, int)' requires an object reference
Before the main function, this function is defined as follows:
public int getIslandCount(int[][] map, int row, int col)Then just change the above line of code to:
public static int getIslandCount(int[][] map, int row, int col)The error is solved, just add a static.
边栏推荐
- MySQL driver jar package download -- nanny tutorial
- 解决:- SPY: No data found for this date range, symbol may be delisted报错
- 打卡day05
- Revitalize rural circular economy and digital chain to link agricultural "ecological chain"
- HCIP 第四天
- Ue after video tutorial first
- July 18-July 31, 2022 (Ue4 video tutorials and documentation, 20 hours. Total 1412 hours, 8588 hours left)
- HCIP 第一天
- Kind of weird!Access the destination URL, the host can container but not
- MySQL union query (multi-table query)
猜你喜欢

MySql COUNT statistics function explanation

APP专项测试:流量测试

【npm install 报错问题合集】- npm ERR! code ENOTEMPTY npm ERR! syscall rmdir

享年94岁,图灵奖得主、计算复杂性理论先驱Juris Hartmanis逝世

8/1 思维+扩展欧几里得+树上dp
![[Dataset][VOC] Male and female dataset voc format 6188 sheets](/img/72/d3e46a820796a48b458cd2d0a18f8f.png)
[Dataset][VOC] Male and female dataset voc format 6188 sheets

数据库概论之MySQL表的增删改查2

At age 94, pioneer Turing award winner, computational complexity theory, Juris Hartmanis, died

View source and switch mirrors in two ways: npm and nrm

Leading the demand and justifying the HR value - the successful launch of the "Human Resource Leading Model HRLM"
随机推荐
有点奇怪!访问目的网址,主机能容器却不行
MySQL union query (multi-table query)
npm does not recognize the "npm" item as the name of a cmdlet, function, script file, or runnable program.Please check the spelling of the name, and if the path is included, make sure the path is corr
Two good php debug tutorials
HCIP BGP Comprehensive Experiment Establishing peers, route reflectors, federation, route announcement and aggregation
MySQL Advanced SQL Statements
Kind of weird!Access the destination URL, the host can container but not
Xgboost报错 ValueError: Invalid shape: (1650, 2) for label
zabbix auto-discovery and auto-registration
暑期总结(三)
npm ---- install yarn
MySQL Advanced Study Notes
Toolbox App 1.25 新功能一览 | 版本更新
Write implicit join on view with jOOQ 3.14 synthetic foreign key
(笔记整理未完成)【图论】图的遍历
解决:- SPY: No data found for this date range, symbol may be delisted报错
有人开源全凭“为爱发电”,有人却用开源“搞到了钱”
MarkDown Formula Instruction Manual
MySQL驱动jar包的下载--保姆教程
DNS resolution process