Beauty Programmer is how to convert QQ into the title of the string of numbers-read the blog "to find a goddess QQ number"

Source: Internet
Author: User

I can only say good dragon Boat Festival you do not date? , still writing code here? I am also bored enough, not to go off work is also in the follow-up writing to play! "Looking for girls to QQ number original" original link http://www.cnblogs.com/iforever/p/4584490.html

Title: give a bunch of numbers (631758924 is not QQ number), according to the following rules can find QQ number: First delete the first number, followed by the second number to the end of the string, then the third number is deleted, and the fourth number is placed at the end of this string of numbers ... ... So loop, know the last number left, the last number is also deleted, in accordance with the order of the deletion, the number is linked to the goddess QQ number.

The following is C # through QQ (615947283) number to get the number of the problem

Private stringREQQ (stringQQ) {    stringtemp =""; Temp= QQ. Substring (QQ. Length-2),1) + QQ. Substring (QQ. Length-1),1);  while(temp. Length <QQ. Length) {Temp= QQ. Substring (QQ. Length-temp. Length-1),1) +temp; Temp= temp[0] + temp. Substring (temp. Length-1) + Temp. Substring (1, temp. Length-2); }    returntemp;}

By the way to post a method to get QQ

Private string GETQQ (string  Num) {//num:631758924    var"";      while 1 ) {        + = num[0]        ; = Num.substring (2) + num[1];    }     return temp + Num;}

Beauty Programmer is how to convert QQ into the title of the string of numbers-read the blog "to find a goddess QQ number"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.