这里我有一个非常简单的程序:
printf("Enter your number in the box below\n");
scanf("%d",&number);
现在,我希望输出看起来像这样: Enter your number in the box below
+-----------------+
| |*| |
+-----------------+
|*| 是用户输入值的闪烁光标。
由于C是线性代码,它不会先输出框图,再要求输出结果,它会先输出顶行和左列,在输入后输出底行和右列。
因此,我的问题是,我是否可能首先打印出方框,然后让一个函数将光标带回方框中?