在turboc2.01里如何将写好的语言运行?

来源:百度知道 编辑:UC知道 时间:2024/09/19 16:42:30
比如写好这些东西,算是个超傻瓜的,但也是个完成的程序,超级小软件吧,如何调用它,运行它呢??如何编译它呢(是不是用编译这个词?)然后运行一下呢。
#include <stdio.h> /*文件包含*/
main() /*定义主函数*/
{
printf("Welcome to the C world!\n"); /*输出欢迎语句*/
printf("****\n"); /*以下几行输出大写字母C*/
printf("*\n");
printf("*\n");
printf("****\

有快捷键:Ctrl+F9(按住Ctrl键不松,然后按F9)
菜单:Run-->Run即可

另外,楼主的程序有误,不完整。应为:
#include <stdio.h> /*文件包含*/
main() /*定义主函数*/
{
printf("Welcome to the C world!\n"); /*输出欢迎语句*/
printf("****\n"); /*以下几行输出大写字母C*/
printf("*\n");
printf("*\n");
printf("****\n);
getch();
}

getch()是暂停用的,否则是不能直接看到输出的。