#include<stdioh>int main(){double x,y;printf("请输入x的值:\n");scanf("%lf",&x);y=2x;printf("y的值是%lf\n",y);getch();return 0; }
#include <stdioh>
#include <stdlibh>/system()函数用到/
#include <stringh>/strcmp()函数用到/
int main()
{
bool falg = false;
char pass[10] = "";
do{
printf("please input password: ");
scanf("%s",pass);
if(strcmp(pass,"123456") == 0)
flag = true;/进入系统/
else
system("clr");
}while(flag);
printf("welcome goto system!");
return 0;
}
main()
{
printf("hello");
system("pause");
} 程序的最后面加上这个试试 system("pause");
以上就是关于用win-tc做一个数学正比例函数y=2x计算程序(C语言编译)。全部的内容,包括:用win-tc做一个数学正比例函数y=2x计算程序(C语言编译)。、怎么用tc 2.0编写纯dos下运行程序、用TC编译的程序生成.EXE文件后没有tc环境怎么运行等相关内容解答,如果想了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)