Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

initialize a pair

pair (data_type1, data_type2) Pair_name;
//OR
pair (data_type1, data_type2) Pair_name (value1, value2) ;
//OR
g2 = make_pair(1, 'a');
//OR
g2 = {1, 'a'};
//OR
Pair_name = make_pair (value1,value2);
 
PREVIOUS NEXT
Tagged: #initialize #pair
ADD COMMENT
Topic
Name
6+3 =