String S;... // Is the size of S, and then the part is deleted.String (s). Swap (s); // "contract to fit" on S"String (). Swap (s); // clears S and minimizes its capacity
#. Specify the comparison type (not a comparison function) for the containers associated with the pointer)
Set
Struct stringless: Public binary_function {Bool operator () (const string * ps1, const string * PS2) const{Return * PS1 }};Typedef set Stringptrset SSP;
Or:Struct derefer
Well, for the first time, it's better to write than the imaginary time. Have not written a blog for a long time, just send up to see it!Description: is a very common single-screen scrolling effect, one-time roll to look like that.PS: With this, plus timelinemax, that is not ~ ~ PS2: With the touch event, you can only see the effect in your mobile browser or in a browser like the chrome phone simulator! GSAP Small Application--js single page scroll sc
1. system environment variables after the user logs on to the system $ HOME user's directory $ PATH the directory searched for when executing the command $ TZ time zone $ MAILCHECK check every several seconds
1. system environment variables after users log on to the system$ HOME user's directory $ PATH: The Directory searched during command execution $ TZ time zone $ How many seconds does MAILCHECK check for new letters? $ PS1 prompt number during command column $
time. you can use the set command at the $ prompt to set or cancel the shell option, and use the-set option, + cancel the corresponding options. most UNIX systems allow switch setting/cancellation of a, e, f, h, k, n, u, v, and x.
Set-xv
Start tracing method. all commands and replicas are displayed, and input is also displayed.
Set-tu
Disable the check for undefined variables during replacement.
Use echo $-to display all configured shell options.
(5) user startup file. profile
PATH = $ PATH:/us
terminal.
The identifier of the current user. The value is a string consisting of digits.
The absolute path name of the current working directory of PWD. The value of this variable varies with the use of the cd command.
PS1 primary prompt. for privileged users, the default primary prompt is #. for common users, the default primary prompt is $.
When the PS2 Shell receives the user's input command, if the user enters "" at the end of the input line, th
/LANGUGE is a language-related environment variable, which can be modified by users in multiple languages.
◆ MAIL refers to the MAIL storage directory of the current user.
◆ PS1 is the basic prompt, Which is # for root users and $ for common users. PS2 is an auxiliary prompt. The default prompt is "> ". You can modify this environment variable to modify the current command line. For example, the following command will change the prompt to the st
1. Set the environment variable histsize so that it can save 10,000 command history.A: Vim/etc/profile, search for histsize, change 1000 to 10000, then save the exit, and then execute source/etc/profile to make it effective.[Email protected] ~]# echo $HISTSIZE1000[[email protected] ~]# histsize=10000# temporarily modified[Email protected] ~]# echo $HISTSIZE10000[Email protected] ~]# cat/etc/profile |grep histsizehistsize=1000Export PATH USER LOGNAME MAIL HOSTNAME histsize Histcontrol[[email prot
as a command that is indirectly sent to i8048, and the Bit3 of the Status Register is set to 1.
To send parameters to i8048, read the Status Register and Judge bit1. The Status Register bit1 is 0, indicating that the input buffer is empty and can be written. Ensure that the Status Register bit1 is 0, and then perform write operations on port 60 h to write parameters.
For more information about the PS/2 Keyboard hardware, see the following documents.
[1] http://pagoda-ooos.51.net/ OS _book/drive
. Common Environment VariablesPATH: determines the directories to which shell will look for commands or programs.HOME: HOME Directory of the current userMAIL: refers to the MAIL storage directory of the current user.SHELL: The Shell used by the current user.HISTSIZE: the number of records that save historical commands.LOGNAME: The Login Name of the current user.HOSTNAME: indicates the host name. If a host name is used by many applications, it is usually obtained from this environment variable.LA
accept connections to generate scoket communications5. Communication starts between applications and remote devices (in communications, applications will be suspended until communication ends)6. After the communication ends, close the socket of the application and remote device to recycle resources.
5. Fetch 20-40 records from the table.
Select top 20 * from a where id not in (select top 20 ID from a order by id asc) order by id asc;
PS1: retrieve the N to M records from the publish table: Sele
command displays all locally defined Shell variables.
8. Common Environment Variables
PATH: determines the directories to which shell will look for commands or programs.
HOME: HOME Directory of the current user
MAIL: refers to the MAIL storage directory of the current user.
SHELL: The Shell used by the current user.
HISTSIZE: the number of historical Command records.
LOGNAME: The Login Name of the current user.
HOSTNAME: indicates the host name. If a host name is used by many applications, it i
displayed, and input is also displayed.Set-tuDisable the check for undefined variables during replacement.
Use echo $-to display all configured shell options.
(5) User Startup File. profilePATH = $ PATH:/usr/loacl/bin; export PATH
(6) shell Environment VariablesCDPATH is used to find the path of the cd command.HOME/etc/passwd fileIFS Internal Field Separator. The default value is space, tab, and line feed.Use MAIL/var/mail/$ USERNAME mail and other programsPATHPS1,
1. Install mingw
Install it to: C:/mingw. You 'd better download the automatic installation version to mingw.
2. Install msys to the mingw home page to download the latest version of msys: URL: http://www.mingw.org/download.shtmlIn the download list, current-msys is the msys Installer. Download its binary version (BIN) and install it under C:/msys/1.0. Specify the mingw position in the middle.
3. Modify the msys configuration fileModify/etc/profile (the Windows path is C:/msys/1.0/etc/profile)
on the workbook page, but some of the basic columns are in the following table:
$ HOME: HOME Directory of the current user
$ PATH: List of directories separated by colons used for command search
$ PS1 command prompt, usually $, but we can use more complex values in bash. for example, string [\ u @ \ h \ W] $ is a popular default usage to tell us the current user, machine name, and current working directory, and give a $ prompt.
$ PS2 second promp
(); // "lemur" ++ I) // "Penguin" cout
Note that I am writing a function object. You may wonder why you must specifically create a function-like class instead of simply writing a comparison function for set. For example, you may want to try:
Bool stringptrless (const string * ps1, // it will be used for const string * PS2) // string * pointer return * PS1 sorted by string value {// Cannot compile
The problem here is that the third parameter of each
difference between innerHTML and nodeValue;
PS2: when the values of innerHTML and nodeValue are assigned, nodeValue converts the HTML contained in the text into special characters to form the plain text;InnerHTML parses special characters in the text;Box. childNodes [0]. nodeValue = 'Box. innerHTML = '
(2). firstChild and lastChild attributesFirstChild = childNodes [0]; get the first subnode of the current element;LastChild = childNodes [box. childNo
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.