(3) C ++ complex type

 

First, the array

 

    // Initialization assignment. 1 
    Short A [ . 3 ]; 
    A [ 0 ] = . 1 ; 
    A [ . 1 ] = 16 ; 
    A [ 2 ] = 90 ; 

    // initialize assignment 2 
    Short B [ . 3 ] = { 2 , . 6 , 13 is }; 

    // initialize assignment 3, their number is calculated 
    Short C [] = { 2 , . 6 , 13 is }; 
    
    // if not the assignment, is initialized to the default character 
    Short D [ . 6 ] = { . 5 };

 

 

Second, the string

string class

 

Third, the structure

 

Four, union

 

 

V. Enumeration

 

Six pointers and free storage space

 

Seven pointers, arrays and pointer arithmetic

 

 

Eight, type combinations

 

Alternatives Nine, array

 

Guess you like

Origin www.cnblogs.com/buchizaodian/p/11511256.html