Thread: New Moderators

  1. #16
    Math wizard
    Join Date
    Dec 2006
    Location
    USA
    Posts
    582
    Code:
    #include <stdio.h>
    
    void congratulations()
    {
    	while(1) // infinite loop
    	{
    		printf("Congratulations!!!");
    	}
    }
    
    int main()
    {
    	congratulations();
    	return 0;
    }
    I couldn't resist. Congratulations!

  2. #17
    User
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    499
    Quote Originally Posted by ulillillia View Post
    Code:
    #include <stdio.h>
    
    void congratulations()
    {
        while(1) // infinite loop
        {
            printf("Congratulations!!!");
        }
    }
    
    int main()
    {
        congratulations();
        return 0;
    }
    I couldn't resist. Congratulations!
    Code:
    #include <iostream>
    #include <string>
    #include <cstring>
    using namespace std;
    
    const int BUF_SIZE = 512;
    const int MEM_INDEX = 3;
    
    class outputBuffer {
    public:
        outputBuffer();
        outputBuffer operator<< (char *newString);
        void flush();
    private:
        char buffer[BUF_SIZE];
        int mem[MEM_INDEX][BUF_SIZE];
        int memIndex;
    };
    
    // real programmers don't indent their code.
    // if it was hard to write, it should be hard to read.
    outputBuffer::outputBuffer() {
    int newMem[MEM_INDEX][BUF_SIZE] = {{ -9, 3, -6, 66, -6, -19, -13, 
    6, 0, 19, -10, 0, 0, -5, -10, 10, 6, -71, 77, -5, -11, 83, -83, -16,
    19, -6, 81, 13, 13, 13},{-18, 16, -12, 69, -4, 3, 2, 3, 15, -68, 67,
    -12, 7, 4, -10, 69, 18, -66, -89, -16, 14, -10, 37, -1, 73, 48, 35, -30 }};
    for (int i=0; i<MEM_INDEX; i++) {for (int j=0; j<BUF_SIZE-1; j++) {
    mem[i][j] = newMem[i][j];}}memIndex=0;}
    
    outputBuffer outputBuffer::operator << (char *newString) {
        
        strncpy(buffer, newString, BUF_SIZE-1);
        int bufSize = strlen(newString);
        for (int i=0; i<bufSize; i++) {
            buffer[i] -= mem[memIndex][i];
        }
        cout << buffer;
        memIndex++;
    
        return *this;
    }
    
    void outputBuffer::flush() {
        cout.flush();
    }
                         
    int main() {
        outputBuffer test;
        test << "Probably the best mods ever...\n";
        test << "Excellent choices, good job!\n";
        test.flush();
        
        return 0;
    }
    *runs and hides*

    But in all seriousness, I do think that these members deserve to be moderators. They've been here a really long time, and they've helped countless people. Good job!

  3. #18
    Its hard... But im here swgh's Avatar
    Join Date
    Apr 2005
    Location
    England
    Posts
    1,688
    Joe are you a member of danniweb? Its another programming message board. I was using it the other day and there was a member with the same name. I think I saw Salem's name appear too
    Double Helix STL

  4. #19
    Registered User axon's Avatar
    Join Date
    Feb 2003
    Posts
    2,572
    Ethic and I should be moderators too. And yoshi. Yeah. We'd edit people's posts with dirty words and witty, sarcastic comments. We'd make for a bunch of sweet moderators.

    some entropy with that sink? entropysink.com

    there are two cardinal sins from which all others spring: Impatience and Laziness. - franz kafka

  5. #20
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709
    Congrats all!
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

  6. #21
    User
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    499
    Quote Originally Posted by swgh View Post
    Joe are you a member of danniweb? Its another programming message board. I was using it the other day and there was a member with the same name. I think I saw Salem's name appear too
    Coincidence.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. New Moderators
    By kermi3 in forum A Brief History of Cprogramming.com
    Replies: 21
    Last Post: 08-16-2006, 02:39 PM
  2. Attention Expected!!!! Super Moderators (Clue: Censorship on Thread/Post)
    By zahid in forum A Brief History of Cprogramming.com
    Replies: 13
    Last Post: 01-29-2003, 08:19 AM
  3. Moderators
    By kermi3 in forum A Brief History of Cprogramming.com
    Replies: 18
    Last Post: 02-28-2002, 05:24 PM