Here is a good little program I wrote in C. Just for fun.

Not a bad little program, and I got the code to work first time, not bad. Writing code in standard C is better than C++ or C#, the old C language is still the best. The whole Linux kernel is written in C and if it is good enough for that project, it is good enough for me.

 
#include <stdio.h>
 
#define EQ ==
#define OP "Troll."
#define trololol printf
 
int lineofstars (void) {
	int x = 0;
	while (x < 64) {
		printf("*");
		x++;
		if (x EQ 31) {
			printf("<|>");
		} else if (x EQ 64) {
			printf("\n-\n");
		}
	}
}
 
int main (int argc, char** argv) {
 
	char *name;
	name = "OP";
	lineofstars();
	trololol("According to this, %s is a %s\n", name, OP);
	return 0;
}

No comments have been made. Use this form to start the conversation :)

Leave a Reply