我已经成功编译了我的代码,但它是这样说的:
Note: You can also run your application by typing 'run' followed by any command line arguments. Starting application without args... Checking Libraries... Copying files... Processing Files... Compiling... Failed to zip binaries! Application Exited.
I want my code to have the user enter three numbers, with spaces in between, and have them be multiplied, so here is my code:
#include <stdio.h>
#include <stdlib.h>
int mult( int x, int y, int z) {
return x * y * z;
int main()
{
int x;
int y;
int z;
printf("Input two integers to be multiplied: ");
scanf("%d", &x);
scanf("%d", &y);
scanf("%d", &z);
printf("The product of the three numbers is %d\n", mult( x, y, z) );
getchar();
}
int mult (int x, int y, int z)
{
return x * y * z;
}
}
我正在使用 compilr.com作为我的开发平台。
最佳答案
您的代码包含语法错误。 mult
定义了两次,大括号有问题。此外,如果您使用的是 C89,main
应该返回一个值。
关于c - "Failed to zip binaries"是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12661775/