实在不明白,这样的东西竟被吹嘘成了大师级别 ...............................................
#include "Stdio.h"
#define N 25
char* MyText[] = {
"Thecompiler**ct",
"cognizedirecter",
"call**atoainter",
"punctions*sande",
"rejectsthemabcd",
"Itispoi**lesstt",
"toacallptnterru",
"pte**procedures",
"dire*ctlylbecau",
"exitingtheproce",
"ceduree**causes",
"executionofthee",
"RETIains**truct",
"whichaaffectsty",
"the*hardwareoft",
"interruptsystem",
"the8051*chipemy",
"Becausenointerr",
"irruptreque**st",
"thepartof\n"
};
void main()
{
char c;
int lineCount = 0;
char* pText = (char*) MyText[0];
while ((c = *pText) != '\n') {
if (lineCount == N) {
lineCount = 0;
putchar('\n');
}
lineCount++;
if (c == 0)
c = ' ';
else if (c == '*' && *(pText+1) == '*') {
c = '^';
pText++;
}
putchar(c);
pText++;
}
getchar();
}
|