Search:

Type: Posts; User: codeguy

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    14,525

    Min, max, sort in vector STL

    I have a vector of integers. I wanted to take out the minimum and maximum numbers from the set.

    Is there an easy way to do this? Or do I need to sort the vector first? Is there a sort function...
  2. Replies
    3
    Views
    2,070

    STL question: vector size (2 dimension)

    I have a

    vector < vector<int> > TwoDim;


    What does TwoDim.size() give me? Is it (x*y), assuming x = rows, y = columns in the sense of an array?

    How do I get the size of x?
    How do I get...
  3. I meant the four in color: ...

    I meant the four in color:

    11110000011111110000011111….111


    -codeguy
  4. How to find Index positions with a vector STL?

    Hello,

    vector <int>my_array

    my_array is 32 in size.

    The contents of my_array is:
    11110000011111110000011111….111
Results 1 to 4 of 4