A +B problem time limit: ms  |  Memory limit:65535  KB Difficulty:0 describe this title practiced hand, please calculatethevalue of a + B input input two number, a, a, output a3 Sample Output 5
#include <iostream>#include<stdlib.h>//c++ is cstdlib because C + + and C can be mixed so unrestricted is the same using  namespace  std; int Main () {   int A, b;   CIN>>a>>b;   cout<<a+b<<Endl; //    System ("pause");//Depending on the compiler, there may be different situations, Dev has a result flash, so here add this function can make it pause and observe the result, need to refer to the header file Stdlib.h   return 0 ;}
stdlib.h
The stdlib.h defines five types, some macros, and common tool functions. Types such as size_t, wchar_t, div_t, ldiv_t, and lldiv_t, macros such as Exit_failure, Exit_success, Rand_max, and Mb_cur_max, etc., commonly used functions such as malloc (), Calloc (), realloc (), free (), System (), Atoi (), ATOL (), Rand (), Srand (), exit (), and so on.
Stdlib header file is standard library header file Stdlib header file contains the C, C + + language of the most commonly used system functions The file contains the C language standard library function definitionthe included function edits Input style: C language mode: #include <stdlib.h>c++ style: #include <cstdlib>
1 Function Name: CallocFunction prototype: void calloc (unsigned n,unsigned size), function function: allocates memory contiguous space of n data items, each data item size is returned by the sizes function: Allocates the starting address of the memory unit, if unsuccessful, returns 0
2 function name: freeFunction prototype: void free (void* p); Function function: Release p refers to the memory area function return: Parameter description: P-Released pointer
3 function Name: mallocFunction prototype: void * malloc (unsigned size); function function: The store function that allocates a size byte returns: The allocated memory area address, if memory is insufficient, returns 0
4 function Name: ReAllocFunction prototype: void * realloc (void * p,unsigned size); Function function: Change the size of the allocated memory area indicated by P to size,size can be larger or smaller than the original allocated space: Returns a pointer to the memory area. null-Allocation failure
5 function name: Randfunction prototypes: int rand (void), function function: Generates random integers from 0 to 32767 (between 0 and 0X7FFF) function return: Random integer
6 function Name: AbortFunction prototype: void abort (void) function function: Terminates a process abnormally.
7 Function Name: ExitFunction prototype: void exit (int state) function function: Program abort execution, return call procedure function return: Parameter description: state:0-normal Abort, non 0-abnormal abort
8 Function Name: getenvFunction prototype: char* getenv (const char *name) function function: Returns a pointer to an environment variable function return: Definition parameter description for environment variable: name-environment string
9 Function Name: PutenvFunction prototype: int putenv (const char *name) function function: Adds the string name to the DOS environment variable function return: 0: Operation succeeded,-1: Operation failed parameter Description: name-environment string
10 function Name: LabsFunction prototypes: Long Labs (Long num) function: Absolute value function for long integer parameter return: absolute value
11 function Name: AtofFunction prototypes: Double atof (char *str) function: Converts a string to a double-precision numeric function return: Converted Numeric parameter description: str-string of floating-point number to convert
12 function Name: AtoiFunction prototype: int atoi (char *str) function function: Converts a string to an integer value function return: Converted Numeric parameter description: str-string to be converted to an integral number
13 function Name: AtolFunction prototype: Long Atol (char *str) function: Converts a string to a long integer function return: Converted Numeric parameter description: str-string to be converted to long integer
14 function Name: ECVTFunction prototype: Char *ECVT (double value,int ndigit,int *dec,int *sign) function function: Convert floating-point number to String function return: converted string pointer parameter description: value-to convert bottom floating-point number, ndigit-the converted string length
15 function Name: FCVTFunction prototype: Char *FCVT (double value,int ndigit,int *dec,int *sign) function function: Converts a floating-point number to a string function return: The converted string pointer parameter description: value-the bottom floating-point number to be converted, ndigit-Convert Bottom String length
A+b problem