Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C++ code style

Name: Anonymous 2010-05-24 12:37

Hi, /prog/.
What is the most beloved syntax style here? KR? BSD? GNU, perhaps?

Name: Anonymous 2010-05-24 19:51

I have no idea what my style is called.

#include <iostream>
#include <stdlib.h>
#include <time.h>

std::string phrases[4] = {
        "I personally use Notepad2 and avoid any \"makefiles\"(which i consider bloated and poor design)",
        "I use one include file for everything.",
        "Anything which uses makefiles is defective Sepples-level shit.",
        "All the C code posts on my blog are void.h merged with somefile.c"
};

class Frozen {
        public:
        Frozen();
        void post();

        private:
        std::string retarded_phrase;
};


Frozen::Frozen() {
        srand( time( NULL ) );
        retarded_phrase = phrases[ rand() % 4 ];
}


void Frozen::post() {
        std::cout << retarded_phrase << endl;
}


int main(void) {
        Frozen * progtroll = new Frozen;
        progtroll->post();
        delete progtroll;
        return 0;
}

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List