#include<iostream>
using namespace std;
int main()
{
//定义F
double lengsu = -1;
double F;
if (-1.435 < lengsu < -0.77)
{
double zj1, zj2, zj3,a;
zj1 = -1.435 - lengsu;
zj2 = -1.435 + 0.77;
zj3 = 0.22 - 0.18;
a = 0.22 - zj1 * zj3 / zj2;
}
cout << F;
system("pause");
return 0;
}
如果不在if语序内输出结果,而是在If外对F进行调用,应该怎么实现