#include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { char ch; while((ch = getch()) != '\r') //回车结束 putchar('*'); system("pause"); return 0; }