| |

VerySource

 Forgot password?
 Register
Search
View: 646|Reply: 2

How to implement this operation?

[Copy link]

2

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-1-17 17:40:01
| Show all posts |Read mode
If there is a string: 0301, I want to add 1 to the string to become 03O2. How to achieve this.
Reply

Use magic Report

2

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-1-22 23:00:01
| Show all posts
Anxious, please help.
Reply

Use magic Report

0

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-1-23 07:54:01
| Show all posts
private string AddNumber (string str)
{
int temp = Convert.ToInt32 (str);
temp + = 1;
string str2 = temp.ToString ();
return str2;
}
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