Horje
elements of set c++ Code Example
elements of set c++
//Method 1:
 set<int>:: iterator it;
 for( it = s.begin(); it != s.end(); ++it){
    int ans = *it;
    cout << ans << endl;
 }
//Method 2:
 for( auto& it : s) {
     cout << it << " ";
 }




Cpp

Related
c++ unordered_map check if key exists Code Example c++ unordered_map check if key exists Code Example
define unicode c++ Code Example define unicode c++ Code Example
c++ remove n characters from string Code Example c++ remove n characters from string Code Example
How to find the suarray with maximum sum using divide and conquer Code Example How to find the suarray with maximum sum using divide and conquer Code Example
c++ vector remove element by value Code Example c++ vector remove element by value Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9