-3
#include <iostream>
using namespace std;
int main()
{
// prototypes:
float add_and_div(float, float, float);
// variables:
float x, y, z;
float result;
cout << "Enter three floats: ";
cin >> x >> y >> z;
// continue the program here
add_and_div(x,y,z,);
컴파일하려고하면 다음과 같은 오류 메시지가 나타납니다. 구문 오류 : ')' 1> 1> 빌드가 실패했습니다.구문 오류, C++ 코드를 수정하는 방법을 모르겠습니다.
add_and_div(x,y,z,);
요구 사항이 될 :
전체 파일을 게시 했습니까? (main() 함수가 불완전하기 때문에 그것을 게시 할 때 컴파일 할 수 없습니다.) 중괄호가 있지만 닫는 중괄호는 없습니다. – thb
'add_and_div (x, y, z,); 여기에 관계없는 쉼표. –
'main' 함수에 닫는 중괄호가 없습니다. –