Data update
This commit is contained in:
parent
5150844a7d
commit
4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions
|
|
@ -1,29 +1,29 @@
|
|||
#include <stdio.h>
|
||||
|
||||
const char *input =
|
||||
"Character,Speech\n"
|
||||
"The multitude,The messiah! Show us the messiah!\n"
|
||||
"Brians mother,<angry>Now you listen here! He's not the messiah; "
|
||||
"he's a very naughty boy! Now go away!</angry>\n"
|
||||
"The multitude,Who are you?\n"
|
||||
"Brians mother,I'm his mother; that's who!\n"
|
||||
"The multitude,Behold his mother! Behold his mother!";
|
||||
"Character,Speech\n"
|
||||
"The multitude,The messiah! Show us the messiah!\n"
|
||||
"Brians mother,<angry>Now you listen here! He's not the messiah; "
|
||||
"he's a very naughty boy! Now go away!</angry>\n"
|
||||
"The multitude,Who are you?\n"
|
||||
"Brians mother,I'm his mother; that's who!\n"
|
||||
"The multitude,Behold his mother! Behold his mother!";
|
||||
|
||||
int main()
|
||||
{
|
||||
const char *s;
|
||||
printf("<table>\n<tr><td>");
|
||||
for (s = input; *s; s++) {
|
||||
switch(*s) {
|
||||
case '\n': printf("</td></tr>\n<tr><td>"); break;
|
||||
case ',': printf("</td><td>"); break;
|
||||
case '<': printf("<"); break;
|
||||
case '>': printf(">"); break;
|
||||
case '&': printf("&"); break;
|
||||
default: putchar(*s);
|
||||
}
|
||||
}
|
||||
puts("</td></tr>\n</table>");
|
||||
const char *s;
|
||||
printf("<table>\n<tr><td>");
|
||||
for (s = input; *s; s++) {
|
||||
switch(*s) {
|
||||
case '\n': printf("</td></tr>\n<tr><td>"); break;
|
||||
case ',': printf("</td><td>"); break;
|
||||
case '<': printf("<"); break;
|
||||
case '>': printf(">"); break;
|
||||
case '&': printf("&"); break;
|
||||
default: putchar(*s);
|
||||
}
|
||||
}
|
||||
puts("</td></tr>\n</table>");
|
||||
|
||||
return 0;
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue