A program thread...

This is a discussion on A program thread... within the A Brief History of Cprogramming.com forums, part of the Community Boards category; Hey guys. Why don't we start and maintain a thread free apps we have created? It would be a cool ...

  1. #1
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,699

    Lightbulb A program thread...

    Hey guys. Why don't we start and maintain a thread free apps we have created? It would be a cool way to help us all stay productive, and it would give others a chance to critique our work.

    ( With, of course, the moderators permission. <Ahem>)

    Whatdya think? Sound like fun?
    Code:
    bool fun(bool value)
    {
        return std::pow(std::exp(1), std::complex<float>(0, 1) 
        * std::complex<float>(std::atan(1)*(1 << (value + 2))))
        .real() > 0;
    }

  2. #2
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,267
    this could be something good, could be something bad... i don't know. lets see what the Webmasta has ta say... and then again thats what the programmer prognography board was for was it not?
    ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.

  3. #3
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,699

    ... and then again thats what the programmer prognography board was for was it not?
    prognography? Is that a real word?
    Code:
    bool fun(bool value)
    {
        return std::pow(std::exp(1), std::complex<float>(0, 1) 
        * std::complex<float>(std::atan(1)*(1 << (value + 2))))
        .real() > 0;
    }

  4. #4
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,699
    [sarcasm]
    I'm so glad this has been such a popular thread
    [/sarcasm]
    Code:
    bool fun(bool value)
    {
        return std::pow(std::exp(1), std::complex<float>(0, 1) 
        * std::complex<float>(std::atan(1)*(1 << (value + 2))))
        .real() > 0;
    }

  5. #5
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,493
    here's the text compressor i wrote:
    huffman compression

  6. #6
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    Originally posted by no-one and then again thats what the programmer prognography board was for was it not? [/B]
    But that board died really quick...
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  7. #7
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,699
    Cool ygfperson, I'll download it when I get home. BTW: What does it do? Does it compress files from the command line?
    Code:
    bool fun(bool value)
    {
        return std::pow(std::exp(1), std::complex<float>(0, 1) 
        * std::complex<float>(std::atan(1)*(1 << (value + 2))))
        .real() > 0;
    }

  8. #8
    Registered User C_Coder's Avatar
    Join Date
    Oct 2001
    Posts
    523
    Originally posted by Magos

    But that board died really quick...
    Did it...
    All spelling mistakes, syntatical errors and stupid comments are intentional.

  9. #9
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,699
    Was it on this board, or was it another?

    Anyway, still haven't heard from the mod- guess it's ok then
    Code:
    bool fun(bool value)
    {
        return std::pow(std::exp(1), std::complex<float>(0, 1) 
        * std::complex<float>(std::atan(1)*(1 << (value + 2))))
        .real() > 0;
    }

  10. #10
    Peace
    Join Date
    Aug 2001
    Posts
    1,510

    Thumbs up

    Sounds like a good idea to me.

    Go ahead and compile a list of stuff. Get a few applications and I'll take them all in a single thread and sticky it... For a while at least. We'll see where it goes from there.

    P.S. You might want to poll the Games Board for games people have created that they want on the list as well. (?)

    Feel free to PM me.
    "There's always another way"
    -lightatdawn (lightatdawn.cprogramming.com)

  11. #11
    Registered User C_Coder's Avatar
    Join Date
    Oct 2001
    Posts
    523
    Instead of complete programs, which would be a massive thread. It might be a good idea to put together a thread of useful routines such as sorts or searches, things like that???
    All spelling mistakes, syntatical errors and stupid comments are intentional.

  12. #12
    Peace
    Join Date
    Aug 2001
    Posts
    1,510
    >>It might be a good idea to put together a thread of useful routines

    Whatever you want. Just post links, dont try to upload all this stuff... Not sure the webmaster would enjoy that.

    I could divide it into three lists:

    Games
    Applications
    Misc Routines


    Anyhow, sort it out and let me know what you come up with.
    "There's always another way"
    -lightatdawn (lightatdawn.cprogramming.com)

  13. #13
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,699
    Whatever you want. Just post links, dont try to upload all this stuff... Not sure the webmaster would enjoy that.
    Well, considering that most apps are going to be console, they probably won't run more than a few Kilo's....anyway, how does PM'ing work?
    Code:
    bool fun(bool value)
    {
        return std::pow(std::exp(1), std::complex<float>(0, 1) 
        * std::complex<float>(std::atan(1)*(1 << (value + 2))))
        .real() > 0;
    }

  14. #14
    Peace
    Join Date
    Aug 2001
    Posts
    1,510
    >>anyway, how does PM'ing work?

    See the PM i sent you.
    "There's always another way"
    -lightatdawn (lightatdawn.cprogramming.com)

  15. #15
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,493
    unzip the huff-com.zip file into one directory
    compile huff-enc.cpp and huff-dec.cpp
    huff-enc takes standard input and compresses it:
    Code:
    huff-enc < somefile.txt
    
    or
    
    huff-enc (enter)
    blah blah blah (enter)
    blah bl(eof char, like ctrl-d)
    the encoded file is outputted to out.ygc, and the lookup table goes to out.ygt.
    huff-dec takes out.ygc and out.ygt and outputs out.ygf, the decompressed file.

    note: if a file is compressed, then decompressed, it is not a 1:1 copy. sometime in the future when i get bored again i'm going to work on that.
    this should but doesn't work for binary files. i doubt the space savings would make the compression feasible, anyway.

    in short: use only on text files, and don't rely on it for anything.
    note: those of you who want the win32 binary to it, should look in the flashdaddee off topic forum, or its c/c++ forum

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Program Plan
    By Programmer_P in forum C++ Programming
    Replies: 0
    Last Post: 05-11-2009, 01:42 AM
  2. Client-server system with input from separate program
    By robot-ic in forum Networking/Device Communication
    Replies: 3
    Last Post: 01-16-2009, 02:30 PM
  3. API Thread HEADACHE
    By WaterNut in forum Windows Programming
    Replies: 11
    Last Post: 01-16-2007, 09:10 AM
  4. Simple thread object model (my first post)
    By Codeplug in forum Windows Programming
    Replies: 4
    Last Post: 12-12-2004, 10:34 PM
  5. fopen();
    By GanglyLamb in forum C Programming
    Replies: 8
    Last Post: 11-03-2002, 11:39 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21