Introduction to String class functions in standard C + +Look, it's not CString.The reason to discard char* strings and select the String class in the C + + standard library is because he compares with the former, doesn't have to worry about enough
Bcmp (memory content comparison)
Related functions: bcmp, strcasecmp, strcmp, strcoll, strncmp, strncasecmp
Header file # include
Define the function int bcmp (const void * S1, const void * S2, int N );
Function Description: bcmp () is used to
compare two strings or string objects for equality in c\c++In the process of writing a program, you often encounter situations where you want to compare two strings for equality. If the object to be compared is a char* string, the strcmp is returned
Memory and String functions 1) bcmp Compare memory contentsCorrelation function bcmp,strcasecmp,strcmp,strcoll,strncmp,strncasecmpTable header file #include Defines the function int bcmp (const void *s1,const void * s2,int N);The function
Turn from: http://chaozaiai.blog.163.com/blog/static/91328155201223181041376/
The Append function can add a string (or data string) to the back of a string
The Assign function can set the contents of a string (or data string) to a string
The AT
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.