#include <stdio.h>
enum escapes { BELL = '/a', BACKSPACE = '/b', TAB = '/t',
NEWLINE = '/n', VTAB = '/v', RETURN = '/r' };
enum months { JAN = 1, FEB, MAR, APR, MAY, JUN,
JUL, AUG, SEP, OCT, NOV, DEC };
/* FEB is 2, MAR is 3, etc. */
int main() {
printf("BELL, BACKSPACE, TAB, NEWLINE, VTAB, RETURN/n");
printf("%o %o %o %o %o %o/n",BELL, BACKSPACE, TAB, NEWLINE, VTAB, RETURN);
for (int i = JAN; i <= DEC; i++)
printf("%d ", i);
printf("/n");
return 0;
}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/266727.html