| |

VerySource

 Forgot password?
 Register
Search
Author: kindred13

Little question. ^-^

[Copy link]

0

Threads

10

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

Post time: 2020-7-19 12:15:02
| Show all posts
Don't say anything else, this sentence:
string a='1,2,5'
Can it be compiled...
Reply

Use magic Report

2

Threads

9

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

 Author| Post time: 2020-7-19 12:30:01
| Show all posts
string a='1,2,5';
Reply

Use magic Report

0

Threads

64

Posts

45.00

Credits

Newbie

Rank: 1

Credits
45.00

 Invalid IP Address

Post time: 2020-7-19 12:45:01
| Show all posts
It’s good if you can solve it with irregular soil methods like this. What you see is the effect, not the method of implementation. Even if they see your method of implementation, they will think you are very smart :D
Reply

Use magic Report

0

Threads

8

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-7-19 13:00:01
| Show all posts
It seems to mean that a contains the specified characters, then zxlu="-" lxlr="-" rzck="-"
Otherwise sjbs="." xxcx="." xxts="."
The characters in a may be any 3 of (1-6).

I don't know what is the purpose of LZ?
Reply

Use magic Report

0

Threads

8

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-7-19 13:15:02
| Show all posts
Seems to understand!
Reply

Use magic Report

0

Threads

8

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-7-19 13:30:01
| Show all posts
zxlu="-" lxlr="-" rzck="-"
sjbs="." xxcx="." xxts="."
Should be defined as an array! !
Reply

Use magic Report

0

Threads

10

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

Post time: 2020-7-19 13:45:01
| Show all posts
Respondent:kindred13() Reputation: 100 2017-01-07 10:54:47 Score:0


? string a='1,2,5';
---------------------------
I am not referring to you without a semicolon...
This is the information of csc after adding a semicolon:
error CS1012: Too many characters in character text
Reply

Use magic Report

0

Threads

8

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-7-19 15:30:01
| Show all posts
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.IO;
namespace Con070107
{
    class Program
    {
        static void Main(string[] args)
        {
            string a = "1,2,5";//a can be changed;
           String [] aa=new string[6];
/*zxlu="-" lxlr="-" rzck="-"
sjbs="." xxcx="." xxts="."
Should be defined as an array! ! */

for(int i=1;i<=6;i++)
{
    if (a.IndexOf(i.ToString()) >=0)
        aa[i-1] = "-";
    else
        aa[i-1] = ".";
}
for (int i = 0; i <= 5; i++)
{
    System.Console.WriteLine(aa[i]);
}
        }
    }
}



}
The above has been tested and passed! !
Reply

Use magic Report

0

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-7-19 22:30:02
| Show all posts
Could it be that the central idea of ​​LZ is different variable name loop assignment.?
Reply

Use magic Report

0

Threads

6

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-7-20 01:45:01
| Show all posts
This kind of variable name... is the original owner a confusing device?

The secondary development of this system will be deadly
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