C 无法在visual studio 2019中启动程序

C 无法在visual studio 2019中启动程序,c,compiler-errors,C,Compiler Errors,我一直在使用visual studio完成一个编程类的作业,收到一个错误,上面写着“无法启动程序--系统找不到指定的文件”。我检查了这个错误的一些解决方案,并尝试进行测试,但没有一个解决了它。也许我的编码有问题。这是代码(尚未完成): \define\u CRT\u SECURE\u NO\u警告 #定义PI=3.1415 #包括 #包括 #包括 /**************************************************************************

我一直在使用visual studio完成一个编程类的作业,收到一个错误,上面写着“无法启动程序--系统找不到指定的文件”。我检查了这个错误的一些解决方案,并尝试进行测试,但没有一个解决了它。也许我的编码有问题。这是代码(尚未完成):

\define\u CRT\u SECURE\u NO\u警告
#定义PI=3.1415
#包括
#包括
#包括
/**************************************************************************
功能:显示_myInfo()
输入参数:无
输出数据类型:void
任务:此功能在一个星形框中向屏幕显示我的姓名、电子邮件和实验室部分。
****************************************************************************/
无效显示\u myInfo(){
printf(“\n*************************************”);
printf(“\n*CNIT 105赋值_5*”);
printf(“\n*xxxxxxxxxxxxxx*”;
printf(“\n*xxxxxxxxxxxx@xx.edu          *");
printf(“\n*实验室部分=星期五11:30*”;
printf(“\n*************************************”);
}
/**************************************************************************
函数:计算圆柱体曲面()
输入参数:半径和高度(均为浮动)
输出数据类型:float
任务:计算圆柱体的表面积并将其作为输出返回。圆柱体的表面是其侧面面积加上其底部面积的2倍。
****************************************************************************/
浮动计算\u圆柱体\u曲面(浮动高度、浮动半径){
浮动SA;
SA=2*PI*半径*高度+2*PI*功率(半径,2);
}
/**************************************************************************
函数:计算球面面积()
输入参数:输入参数:半径(浮动)
输出数据类型:float
任务:计算球体的表面积,并将其作为输出返回。圆柱体的表面是其侧面面积加上其底部面积的2倍。
****************************************************************************/
空心计算球面积(浮动半径){
浮动SA;
SA=4*PI*pow(半径,2);
}
/**************************************************************************
功能:验证_三角形()
输入参数:3浮点
输出数据类型:int(1或0)
任务:验证输入的数字是否来自三角形,是否每两个数字的和大于三分之一。换句话说,这三个条件都必须是真的。
****************************************************************************/
int验证_三角形(浮点a、浮点b、浮点c){
如果(a+b>c&&b+c>a&&a+c>b){
返回1
}
否则{
返回0
}
}
/**************************************************************************
函数:计算面积三角()
输入参数:3浮点
输出数据类型:float
任务:计算三角形的面积
****************************************************************************/
浮点数计算面积三角(浮点数a、浮点数b、浮点数c){
浮子;
漂浮区;
如果(验证_三角形(a、b、c)==0)
printf(“输入的数字不形成三角形”);
}
否则{
S=(a+b+c)/2;
面积=平方米(S*(S-a)*(S-b)*(S-c));
返回区;
}
int main(){
浮动半径;
浮动高度;
漂浮区;
浮子;
int display_myInfo();
}
有人能帮我解决这个错误吗?
谢谢。

我不认为错误源于您的代码。似乎有些文件命名错误,但我无法从距离上真正分辨出来。显然项目设置不正确。最好的办法是让更有经验的程序员看看你在做什么。但如果不可能,我会启动一个新项目,然后将您的代码复制/粘贴到该项目中。请提供一份报告。
#define _CRT_SECURE_NO_WARNINGS
#define PI=3.1415
#include <stdio.h>
#include <math.h>
#include <conio.h>

/**************************************************************************
     Function: display_myInfo()
     Input Paramaters: none
     Output data type: void
     Task: This function displays my name, email, and lab section to the screen in a box of star.
****************************************************************************/
void display_myInfo() {
    printf("\n**********************************");
    printf("\n*   CNIT 105 Assignment_5        *");
    printf("\n*  xxxxxxxxxxxxxxxx              *");
    printf("\n*   xxxxxxxxxxxx@xx.edu          *");
    printf("\n*   Lab section = Fri. 11:30     *");
    printf("\n**********************************");
}

/**************************************************************************
     Function: compute_cylinder_surface()
     Input Paramaters: radius and height (both float)
     Output data type: float
     Task: Compute the surface area of a cylinder and return it as output. The surface are of a cylinder is the area of its side plus 2 times area of its base.
****************************************************************************/
float compute_cylinder_surface(float height, float radius) {
    float SA;
    SA = 2 * PI * radius * height + 2 * pi * pow(radius, 2);
}

/**************************************************************************
     Function: compute_sphere_area()
     Input Paramaters: Input parameter: radius (float)
     Output data type: float
     Task: Compute the surface area of a sphere, and return it as output. The surface are of a cylinder is the area of its side plus 2 times area of its base.
****************************************************************************/
void compute_sphere_area(float radius) {
    float SA;
    SA = 4 * PI * pow(radius, 2);
}
/**************************************************************************
     Function: verify_triangle()
     Input Paramaters: 3 float
     Output data type: int (1 or 0)
     Task: Verify if the input numbers from a triangle, if the sum of every 2 numbers is greater than third. In other words, all three conditions must be true.
****************************************************************************/

int verify_triangle(float a, float b, float c) {
    if (a + b > c && b + c > a && a + c > b) {
        return 1
    }
    else {
        return 0
    }
}

/**************************************************************************
     Function: compute_area_triangle ()
     Input Paramaters: 3 float
     Output data type: float
     Task: Compute the area of triangle
****************************************************************************/
float compute_area_triangle(float a, float b, float c) {
    float S;
    float Area;
    if (verify_triangle(a, b, c) == 0)
        printf("The input numbers do not form a triangle");
}
else {
S = (a + b + c) / 2;
Area = sqrt(S * (S - a) * (S - b) * (S - c));
return area;
}

int main() {
    float radius;
    float height;
    float area;
    float S;

    int display_myInfo();

}