adspace


How do you declare a set in c++?

Answer Posted / Akash Kumar Kharwar

To declare a set in C++, you first include the corresponding header file (<set>), and then use the set container with template parameters. For example: nn`std::set<int> mySet;`nCreates an empty set of integers.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How c functions prevents rework and therefore saves the programers time as wel as length of the code ?

1165


Can union be self referenced?

1267


What is the latest version on c++?

1208


What character terminates all character array strings a) b) . c) END

1396


daily Routine of father

1485