Home > Back-end >  I met problems when they study C STL set for a great god for help
I met problems when they study C STL set for a great god for help

Time:09-19

#include
#include

using namespace std;
Struct T {
Boolean operator () (int a, int b) {
Return (a> B);
}
};

Void main ()
{
Set V1.
V1. Insert (20);
V1. Insert (200);
V1. Insert (2001);
V1. Insert (200000);
V1. Insert (120);
For (set : : iterator it=v1. The begin (); it!=v1. End (); It++) {
Cout<* it}
Set : : iterator l=v1. Find (10);
Pair : : iterator, set : : iterator> Mypair=v1. Equal_range (200);
Cout<* (mypair. First) & lt; }

CodePudding user response:

Post code, describe the problem you met, you can't expect others to stick your code run, and then run into problems, and then give you answer,,,
  • Related