I found the code written by searching for man-hours exercises N years ago and thought it was okay to look for the first non-repeated substring in the English string. Only one traversal is required, but only applicable to English.
Char * GetMaxSubStr
[Disclaimer: All Rights Reserved. You are welcome to reprint it. Do not use it for commercial purposes. Contact Email: feixiaoxing @ 163.com]
During the interview, the examiner liked one question: how many words are there in a string
Program code
# Include
Main (t, _,)
Char *;
{
Return! 0
1, t
Main (2, _ + 1, "% s % d \ n"): 9: 16: t
"@ N' +, # '/* {} w +/w # cdnr/+, {} r/* de} +,/* {* +, /w {% +,/w # q # n +,/# {l +,/n {n +,/+ # n + ,/#\
; # Q # n +,/+ k #; * +,/'r: 'd * '
C language programming [plain]/* Start the comments in the program header (to avoid any problems encountered during the submission of blog posts, the slash used to indicate that the comments have been deleted)* Copyright and version Declaration of
In C/C ++ learning, some people often cannot understand the concepts of "constant Pointer" and "pointer constant. In fact, the data on the address pointed to by the "constant Pointer" is a constant, while the address pointed to by the "pointer
How to Implement the getch () function and the getch FunctionTo use the getch () function, you must first introduce the conio. h header file.
However, I use cygwin as the compiling environment and cannot find conio. h. Therefore, I can only find an
Sprintf function Usage Details, sprintf function detailsFunction
Write formatted data to a character buffer.
Header files
Stdio. h
Prototype
Int sprintf (char * buffer, const char * format, [argument]… );
Parameter List
Buffer: a char pointer
Pointer array and main function with parameter, pointer array parameter main(1) pointer Array
A pointer array stores an address for each element, which is equivalent to a pointer variable.For example, int * p [4]Pointer arrays are suitable for
Basic operators and expressions in C LanguageTypes, priorities, and associativity of C Operators
There are many operators and expressions in C language, which are rare in advanced languages. It is precisely the rich operators and expressions that
The most typical 10 small programs in C language and small programs in C Language[Procedure 1]
Question: How many three numbers can be composed of 1, 2, 3, and 4 numbers that are different from each other and have no repeated numbers? What is it?
1.
Hdu 6161 -- Big binary tree (thinking -- compressing space), hdu6161 -- big
Question Link
Problem Description
You are given a complete binary tree with n nodes. the root node is numbered 1, and node x's father node is too x/2 then ⌋. at the
Reading Notes-C traps and defects, Reading Notes-c traps
To participate in the C language project, the author had to regain the C language (previously C ++, or C ++ for convenience ).
We recommend that you look at the C traps and defects (C traps
C language basics-Lesson 2-data types and operators and Data Type Operators1. Data Type 1.1 constant in C Language
A constant is an unchangeable amount in a program. when defining a constant, an initial value must be given.1.1.1 # define
Define a
How to Configure IPSec Tunneling in Windows 2000
The information in this article applies:
Microsoft Windows 2000 Advanced Server
Microsoft Windows 2000 Datacenter Server
Microsoft Windows 2000 Server
SUMMARY
You can use IP
Common attack programs
AbstractThere are some old ones, which seem useless now, but they are all famous.
1 Land
Attack A Win95 machine. This is a vulnerability in Win95.If you initiate a connection (SYN) on the same port, Win95 will crash.
/* Land.
C language, designed and implemented in the 1970 s, is doomed to a language with a strong engineer culture and lacks some academic atmosphere. Its many details are designed with a strong trace of practical use. C language is born from a UNIX
Classic Algorithm Research Series: 1. A * Search Algorithm
Author: July, January 2011----------------------------------Bloggers:1. In this series of classical algorithm research, I hope this series of articles is not good enough.2. This classic
IntroductionAt the beginning of the compiler's work, it is to read the source code (pre-compilation is not considered), and then remove some null characters, and then match the elements with their attributes (optional ), form a lexical unit.
How to generate random numbers in C language:
To obtain a random number in C, the function must be:
Int rand (void );
Void srand (unsigned int n );
Note: This header file must be included # include
The rand () function returns a pseudo-random
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