Because to call the Windows API or to the VC + + Write interface, a lot of places to use Pchar, now the char array, string and pchar between the conversion are listed, are online looking for information, I summarize, first directly on the code, and
Template:1. Quick-Line:VarRank,height,h:array [0..300000] of Qword;Rank[i]:i the suffix of the ranking;HEIGHT[I]:LCP (S[a[i,2]...len],s[a[i-1,2]...len]);H[I]:LCP (S[i...len],s[a[rank[i]-1,2]...len]);h[i]>=h[i]-1;A:array [1..300000,1..2] of
Comments: Some of them were written when I learned to crack and write the registration machine. Some of them were written by some of my brother's code. If they are not well written, please advise: {====================================================
Suffix Automaton three • Repeat melody 6 time limit:15000msSingle Point time limit:3000msMemory Limit:512MBDescribeSmall hi usually a big hobby is playing the piano. We know that a musical melody is represented as a series of numbers.Now little hi
There is a string with a length of less than 1000000. Calculate the maximum number of chunks, that is, express s as s '+ s '······. Calculate the number of s.
Use the KMP idea to find the next array, and then use the hand-drawn method to find that
Enter a four-character arithmetic expression containing parentheses on the keyboard, which may contain extra parentheses,Remove all unnecessary parentheses. The relative positions of all variables and operators in the original expression remain
Document directory
Step by step to optimize Delphi string SEARCH
Step by step to optimize Delphi string SEARCH
Author: Zhu Xiaofeng Source: csdn development expert responsible editor: Fangzhou
I used a large number of string processing functions
Some of them were previously written when I learned to crack and write the registration machine. Some of them were written by some of my brother's code. It is not easy to write:
{===================================================== =================
Function length (S: String {string; or an array}): integer;
Example:
// String (same as ansistring in Delphi 2007) var S: string; I: integer; begin S: = 'delphi '; I: = length (s ); showmessage (inttostr (I); {6} end;
//
Http://www.cnblogs.com/zhjp11/archive/2010/02/26/1674227.html
Today, when we look at algorithm analysis, we can see a problem where we can find the largest K value in a pile of data.
The name is: design a group of N numbers, and determine the
T2:Mr. Robinson has a pet monkey named Toto. This day, they are walking along the country road, suddenly found on the roadside signs with a small note: "Welcome to free tasting my peanut!" --Bear word ".Mr. Robinson and Toto are very happy, because
How to convert a string to Utf8 encoding.
Http://www.delphi2007.net/DelphiVCL/html/delphi_20061222153725182.html
Is there any control for indy to be transferred,
How can I test whether the conversion is correct?
The experts are not excited !!!!!!!
{ID: anniel11PROG: namenumLANG: PASCAL}Program namenum;var i,n,l:integer; s,s2:string; dicl:array[1..12] of integer; dic:array[1..12,1..2000] of integer;function transs(c:char):string;var trans:integer;begin case c of ‘A‘,‘B‘,‘C‘:trans:=2;
Technical Exchange, DH explanation.
I wrote it once before, and now I want to rewrite it all. It's more basic.
I remember that one of my interview questions was displayed on the box. The first question is:The difference between ansistring and
String
Public Class Ustringclass ustringPrivate Shared gencoding as System.Text.Encoding = System.Text.Encoding.GetEncoding ("GB2312")
Public Shared Property Encoding () Encoding () as System.Text.EncodingGetReturn gencodingEnd GetSet (ByVal value
1.16 to 10********************************************************16 ext. 10, otherwise output-1function Hex (C:char): Integer;VarX:integer;Beginif (ord (c) >= Ord (' 0 ')) and (Ord (c) X:= Ord (c)-ord (' 0 ')else if (Ord (c) >= Ord (' a ')) and
// Hexadecimal (s) --> decimal (I) [rewrite: jey]Function hextoint (S: string): integer;Begin // $ indicates hexadecimalResult: = strtoint ('$' + S );End; // convert the value in decimal format to a binary string [rewrite: jey] function inttobin
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.