![](/img/trans.png)
[英]Microsoft Visual Studio 2017 VERY basic help needed: “The system cannot find the file specified”
[英]how can fix The system cannot find the file specified at visual studio 2022
#include<stdio.h>
#include<conio.h>
#include <math.h>
int main(void)
{
int num, lower, upper;
double squareroot;
int square;
int cube;
// input value
do
{
printf("the lower value limit is ");
scanf_s("%d", &lower);
} while (lower < 0 || lower > 50);
do
{
printf("the upper value limit is ");
scanf_s("%d", &upper);
} while (upper < 0 || upper > 50);
// the formular to find the squareroot, square, cube
squareroot = sqrt(num);
square = num * num;
cube = num * num * num;
printf("*base number* || *square root* || *square* || *cube*\n");
printf("*%d* || *%f* || *%ld* || *%ld*\n",
num, squareroot, square, cube);
return 0;
图片显示系统找不到指定的文件,当我尝试重建解决方案时,他们向我显示了另一个程序问题。 对于另一个程序,我正在那里进行一些更改,但是当我运行它时,我更改的东西并没有改变
<conio.h>
不存在于最新的编译器中。 你的程序会抛出一个错误。 <conio.h>
已停产。 很久以前它就被用在 MS-DOS 编译器中。 请务必在void main()
function 的末尾添加一个}
。
从您在问题下方发布的评论来看,问题的原因如下:
您忽略了“输出”window 的内容,其中指出构建可执行文件失败。
“输出”window 显示了编译器生成的所有错误消息。 您应该始终准确阅读这些错误消息,如果编译失败,您不应该尝试运行该程序。 否则,您可能会运行旧版本的程序或收到一条错误消息,指出它找不到可执行文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.