Results 1 to 12 of 12

Thread: ...

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User Pa3KaTaH's Avatar
    Join Date: Sep:2003
    Location:
    Posts: 3,851

    ...

    -


    ,
    ,
    :
    , , , ,





    edit
    notepad, dreamweaver, word XP, 250-300

  2. #2
       
    Join Date: Aug:2003
    Location:  
    Posts: 8,103
    ?
    ASRock X99 Extreme6/3.1 | Core i7 6950X | 32GB G.Skill DDR4-3200 | Samsung 970 PRO 1TB | MSI GeForce RTX 4080 Gaming X Trio

  3. #3
    Registered User Pa3KaTaH's Avatar
    Join Date: Sep:2003
    Location:
    Posts: 3,851

  4. #4
    - 33% Baby Thomas's Avatar
    Join Date: Jul:2001
    Location:
    Posts: 1,831
    Pa3KaTaH, , 2 !
    Word XP , CTRL+H (Replace) . *****. Replace All , 1024 . ...

  5. #5
    ... ... woynoff's Avatar
    Join Date: Mar:2004
    Location:
    Posts: 1,688
    , , . .
    .

  6. #6
    Registered User Pa3KaTaH's Avatar
    Join Date: Sep:2003
    Location:
    Posts: 3,851
    Baby Thomas,
    :

    html ,
    500 ,
    background colors,
    30 - ,
    CSS,

    , `` 6 ,

    ****** ,

    woynoff,

  7. #7
    ... ... woynoff's Avatar
    Join Date: Mar:2004
    Location:
    Posts: 1,688


    , , 8 .
    .

  8. #8
    Registered User Pa3KaTaH's Avatar
    Join Date: Sep:2003
    Location:
    Posts: 3,851

  9. #9
    - 33% Baby Thomas's Avatar
    Join Date: Jul:2001
    Location:
    Posts: 1,831
    , . .

    15-20 .

  10. #10
    Registered User Pa3KaTaH's Avatar
    Join Date: Sep:2003
    Location:
    Posts: 3,851
    Originally posted by Baby Thomas
    , . .

    15-20 .
    , !

    woynoff, !

  11. #11
    ... ... woynoff's Avatar
    Join Date: Mar:2004
    Location:
    Posts: 1,688
    .
    .

  12. #12
    Pesho's Avatar
    Join Date: Nov:2001
    Location: Sofia
    Posts: 5,169
    , C++ ( Boost STL):

    Code:
    #include <iostream>
    #include <map>
    #include <set>
    #include <sstream>
    #include <string>
    #include <boost/tokenizer.hpp>
    using namespace std;
    using namespace boost;
    
    typedef map<string, int> WordMap;
    
    struct Word {
        int count;
        const string *str;
        Word(int count, const string *str) : count(count), str(str) { }
        friend bool operator<(const Word& lhs, const Word& rhs) {
            return (lhs.count>rhs.count) || ((lhs.count==rhs.count) && (*lhs.str<*rhs.str));
        }
    };
    
    typedef set<Word> WordSet;
    
    int main() {
        ostringstream ostr;
        cin >> ostr.rdbuf();
        string str = ostr.str();
        tokenizer<> tok(str);
        WordMap wordMap;
        for (tokenizer<>::iterator it = tok.begin(); it != tok.end(); ++it) 
            ++wordMap[*it];
        WordSet wordSet;
        for (WordMap::iterator it = wordMap.begin(); it != wordMap.end(); ++it) 
            wordSet.insert(Word(it->second, &it->first));
        for (WordSet::iterator it = wordSet.begin(); it != wordSet.end(); ++it)
            cout << it->count << " " << *it->str << endl;
    }
    .EXE

    :

    wc <filename.txt
    Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |