0 c++
这是我学习IT和c ++的第一年,所以我对c ++没有太多的了解.问题是关于函数调用.
功能标题是:
bool insure(int age, bool smoker)
Run Code Online (Sandbox Code Playgroud)
我的任务是写下正确的函数调用并声明我将在调用语句中使用的所有变量.
到目前为止,这是我提出的:
#include <iostream>
using namespace std;
bool insure(int age, bool smokers)
{
bool ret;
}
int main ()
{
int age;
bool isSmoker;
bool ret;
cout << "Enter your age: ";
cin >> age;
ret = insure(age, isSmoker);
return 0;
}
Run Code Online (Sandbox Code Playgroud)
我想知道这个程序是否正确或者我做错了什么.提前致谢