1. 把打印信息输出到指定的文件里。#include <stdio.h> #include <stdlib.h> freopen("log.txt", "w", stdout); for (int i = ; i < ; i++) { printf("%02X ", i); } printf("ddddddd\r\n"); printf("tttttt1"); freopen("CON", "w", stdout);