Name: Anonymous 2010-05-24 12:37
Hi, /prog/.
What is the most beloved syntax style here? KR? BSD? GNU, perhaps?
What is the most beloved syntax style here? KR? BSD? GNU, perhaps?
#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;
}