#include<stdlib.h>
#include<stdio.h>
#include<windows.h>
int main()
{
printf("\n\t\thello world...");
printf("\n\n\n\t按任意键清屏...");
getch();
Sleep(100);
system("cls");
printf("\n\n\t\t另一个界面...\n\n");
return
0;
}
#include<stdio.h>
#include<windows.h>
int main()
{
}
本文提供了一个使用C语言实现简单界面切换的示例代码。该程序在Windows环境下运行,利用system函数调用cmd命令进行屏幕清理,并通过getch()函数等待用户按键继续。
1万+

被折叠的 条评论
为什么被折叠?



