Conversion from: Implementation and explanation of strcmp Functions
The strcmp function is a basic function in C/C ++. It compares two strings and returns the comparison result. The function form is as follows:Int strcmp (constchar * str1,
Start with the question:Strcmp () anyone?
Time limit:2000 ms
Memory limit:0 KB
64bit Io format:% LLD & % llusubmit status
Description
J
? Strcmp ()? Anyone?Input:Standard InputOutput:Standard output
Strcmp () is a library
Implementation of C + + Common library function atoi,itoa,strcpy,strcmpC-language string manipulation functions1. String reversal-Strrev2. String copy-strcpy3. String conversion to integer-atoi4. String Length-strlen5. String connection-strcat6.
Realization of C + + Common library function atoi,itoa,strcpy,strcmp
View Plaincopy to Clipboardprint?
Implementation of 1 1.//integer conversion into string itoa function
2 #include "stdafx.h"
3 #include
4 using namespace Std;
5 void itoatest (int
String as a more important part of C language, learning this part requires us to understand more. Analysis. We are in the process of learning the first in the mind a clear idea, according to this idea on the computer to knock out. Just start
Pointers Small Knowledge Points:int a = 10;int *p=&a;int *q=p; The address of A is saved in Pint *q=p; Assigning the value of p to the Q function is to let Q also point to aStrlen (); To find the length of a stringstrcpy (); Copy stringStrcat ();
1 //a simple implementation of the C-Language standard library function strcpy. 2 3 //return value: The address of the target string. 4 5 //The ansi-c99 standard is undefined for cases where an exception occurs, so the implementation determines the
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.