How to print the element of the set in C++ Get link Facebook Twitter Pinterest Email Other Apps - June 15, 2023 for(auto i = st.begin() ; i!= st.end() ;++i){ cout<< *i<<","; } take the starting pointer of the set and the ending pointer of the set Get link Facebook Twitter Pinterest Email Other Apps Comments
nth element of the set in C++ - June 15, 2023 auto it = st.begin(); advance(it, 2); int value = *it; cout<< value; Read more
How to do a linear search program in c language - September 01, 2022 This is the code for the linear search in c language Read more
print vector without iterator - February 25, 2023 copy ( nums1 . begin (), nums1 . end (), ostream_iterator < int >(cout, " " )); Read more
Comments
Post a Comment