Posted: . At: 5:18 PM. This was 8 years ago. Post ID: 9167
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.
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;
} |
#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;
}