| |

VerySource

 Forgot password?
 Register
Search
View: 639|Reply: 1

Ask a little question, wait online, urgent !!!!!

[Copy link]

2

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-1-30 22:20:01
| Show all posts |Read mode
private char [,] c = new char [3,3];
private void getnext ()
{
int i = 0;
int j = 0;
int a, b, c, d;
int m_i;
for (int p = 0; p <3; p ++) {
for (int q = 0; q <3; q ++)
{
if (c [p, q] == 'x') // Error here, error: E:\Documents and Settings\reeves\My Documents\Visual Studio Projects\Eight Digital\Form1.cs (287): Cannot apply index with [] to "int" Type of expression

{
i = p; j = q;
}
}
}

Master
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-3-8 23:30:01
| Show all posts
Remove int a, b, c, d;

c is repeatedly defined
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list