Search:

Type: Posts; User: zcrself

Search: Search took 0.01 seconds.

  1. Thread: sort question

    by zcrself
    Replies
    13
    Views
    1,161

    Dev-c++ 4.9.9.2 windows xp

    Dev-c++ 4.9.9.2

    windows xp
  2. Thread: sort question

    by zcrself
    Replies
    13
    Views
    1,161

    bool cmp1(string a, string b) { return...

    bool cmp1(string a, string b)
    {
    return a.length() <= b.length() && a < b;
    }
    int main()
    {
    std::vector<string> vec;
    vec.push_back("ab"); vec.push_back("b"); vec.push_back("aaa");
    ...
  3. Thread: sort question

    by zcrself
    Replies
    13
    Views
    1,161

    thanks for your suggestion!

    thanks for your suggestion!
  4. Thread: sort question

    by zcrself
    Replies
    13
    Views
    1,161

    I do appreciate your suggestion, thanks a lot ...

    I do appreciate your suggestion, thanks a lot



    bool cmp1(string a, string b)
    {
    if(a.length()==b.length())
    {
    return a < b;
    }else
  5. Thread: sort question

    by zcrself
    Replies
    13
    Views
    1,161

    aa aaa adfd dd

    aa aaa adfd dd
  6. Thread: sort question

    by zcrself
    Replies
    13
    Views
    1,161

    sort question

    #include <iostream>
    #include <algorithm>
    #include <vector>
    #include <string>
    using namespace std;
    int main()
    {
    std::vector<string> vec;
    vec.push_back("dd"); vec.push_back("adfd");...
Results 1 to 6 of 6