Today, I encountered the problem of converting Chinese text and English punctuation. Find a solution record from the Internet Html code
Author: "Seth Xu"
==================================================================================
//Function Description: Set two point sorting criterion , according to Y from small to large, y values are equal (x values from small to large sort)
//================
# Include # Include # include # include # include # include using namespace STD; void main () {fstream infile; infile. open ("D: // infile.txt"); vector VEC; string line, result; while (Getline (infile, line) {for (string :: size_type Index = 0
Public static void main (string [] ARGs ){/*** I am doing this and saving it using map. When the string is large, my efficiency is high.*/String test = "asdqwasdasdasdi ";// Count the execution timeLong time1 = system. currenttimemillis ();Char []
Symbol
English name
Chinese name
~
Tilde or swung dash
Wave character or tilde
!
Exclamation mark
Exclamation
@
At sign or commercial at
An AI or a little mouse
The normal interface, as shown in the following illustration, appears below the Drawing toolbar.
If it doesn't show up, you go to these places to find it. View → toolbar → symbol bar. Like the following figure.
What if you can't find
Today I recorded two recent errors. I shouldn't have made such a mistake, but the result is.
ADOConnect data files in strings (for exampleExcel,MDB) The file name must end with ";", for example:
Strcnn = "provider = Microsoft. Jet. oledb.
+ Plus sign; positive sign-Minus sign; minus sign± Plus or minus plus and minus signs×Is multipliedDivision is divided by Division= Is equal to No.=Is not equal to No.Token is equivalent to all equal signOperation is equal to or approximately equal
# Include # include using namespace STD; // invert the words in a sentence without changing the punctuation marks to p228void rever (char * Str) {Int J = strlen (STR)-1; int I = 0; while (I
I would like to thank my colleague Bruce Li for his friendship.
+ Plus sign; positive sign-Minus sign; minus sign± Plus or minus plus and minus signs× Multiplied by multiplication numberDivided by Division= EqualNot equal to not equalExcept
. Period full stop
, Comma
: Colon colon
; Semicolon
! Exclamation exclamation point
? Question mark question mark
Hyphen
'Apostrophe ellipsis; All lattice symbols
-Dash
''Single quotation marks single quotes
"" Double quotation marks double
Judge whether a string is all Chinese, and the comma, period, and so on, which are entered in the English state, will be distinguished by the following code:
This article describes a script that uses Python to write a statistical LAN that is not shut down and generates an Excel table (sample code)
#!/udict/bin/env python#-*-coding:utf_8-*-#Date: 2016/10/17#author:wangpeng#blog:http:// Wangpengtai.blog.51
When exporting data to excel in php, the number becomes scientific count. When the data is exported to excel, the numeric format is incorrect, which is generally divided into the following two situations. 1. solve the problem of insufficient length
Method One
Judging and counting by ASCII code table
package mainimport "fmt"func charactortype() { var s2 string = "112aaaaFGG123 *&^%" var e,s,d,o int for i := o; i
Method Two
Match and count by regexp regular
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.