LDAP/SASL/GSSAPI/Kerberos programming API--krb5 client

There are two libraries available for krb5 API: MIT and Heimdal. The APIs of the two libraries are different. It is basically OK for one client's API to connect to the otherThe two kadmin libraries in API are completely incompatible. From the kadmin application tools of MIT and Heimdal, it can be seen that it is not successful to connect the k ...

Posted by AdRock on Tue, 17 Mar 2020 22:47:23 -0700

Principle and simple implementation of C++ STL iterator - just read this one!

1. Introduction to iterator In order to improve the efficiency of C + + programming, STL (Standard Template Library) provides many containers, including vector, list, map, set, etc. However, some containers (vectors) can access the data in the container by subscript index, but most containers (list, map, set) cannot access the elements in the c ...

Posted by 303tech on Sat, 14 Mar 2020 06:45:24 -0700

Strictly sub small spanning tree

Title Description Recently, little C has learned many algorithms of minimum spanning tree, such as Prim algorithm, Kurskal algorithm, loop elimination algorithm, etc. Just when little C is complacent, little p pours cold water on little c again. Small P said that let small C find a small spanning tree of undirected graph, and this small spanni ...

Posted by meow on Sat, 07 Mar 2020 22:05:49 -0800

[Uva1637][DFS] [memory] card game Double Patience

Write code must pay attention to!!!!!! I wrote 1 + 1 for i+1 and changed it all night Title: Double Patience is a single player game that uses a standard 36 card deck. After shuffling, the cards are placed on a table, folded into 9 stacks, 4 for each stack, face up. When the card is down, the player turns. Each time, he can remove the top cards ...

Posted by crouse on Thu, 05 Mar 2020 20:56:46 -0800

[notes] P1330 block sunshine University

Easy to read: for two points \ (u,v \), only one point can block this edge. What do you mean? If the points on this graph are colored, then for the above two points \ (u,v \), \ (u,v \) must be different colors (it is important to understand this point). So, that is to say, in this picture, if we want to "completely block" this pictur ...

Posted by Residue on Fri, 14 Feb 2020 06:20:14 -0800

# Essential C++ Reading Notes #Chapter IV Object-based Programming Style

Fundamentals The definition of a Class consists of two parts: the declaration of the class and the body immediately following the declaration.The main part is enclosed by a pair of braces and ends with a semicolon.Two keywords within the principal, public and private, are used to denote "member access" for each block.Public member s c ...

Posted by Neoraven456 on Fri, 07 Feb 2020 19:44:53 -0800

C pointer (1) - Application of pointer in array (program explanation)

2-1. Definition of C array pointer: #include <stdio.h> int main() { char str[]="China Beijing Fujian"; //Define and initialize array str char *pstr; //Define pointer variable pstr pstr=&str[6]; //Initialize pstr and make the pointer variable pstr point to array str pr ...

Posted by skylark2 on Fri, 31 Jan 2020 00:23:43 -0800

Conversion of txt novel to mobi novel by using kindlegen (C + + implementation)

I always like to read novels on the kindle. The kindle doesn't hurt my eyes. It can also help control the time of playing mobile phones. But it's a headache to read the online novels in the format of txt on the kindle. Such novels have no catalogue on the kindle, and they are very long. So I always wanted to add a catalog. So there is this arti ...

Posted by Link on Thu, 30 Jan 2020 06:25:38 -0800

Lojා121. Connectivity of "off line transitive" dynamic graphs (segment tree divide and conquer)

meaning of the title The meaning of the question is very clear.. Sol It's obvious that you can go directly to LCT.. But this problem allows offline, so there is a very ingenious offline approach, like what is called line tree divide and conquer?? The position of each edge in this question can be regarded as an interval. We use line tree ...

Posted by imamferianto on Sun, 26 Jan 2020 09:41:29 -0800

[explanation] HDU-2222 Keywords Search

Title Link: HDU-2222 Or Vjudge Brief description: The establishment of ac automata, in which the insertion process uses the dictionary tree to deal with the backtracking array (also known as the failure array) process is a widely used STL queue. The process of ac automata is still in writing. This is the first question of learning ac automata. ...

Posted by madox on Sat, 25 Jan 2020 08:18:24 -0800