📌  相关文章
📜  c++代码到python代码在线转换器 - Python代码示例

📅  最后修改于: 2022-03-11 14:45:53.170000             🧑  作者: Mango

代码示例8
#include
#include
#define vL 0.4
using namespace std;
struct generator
{
    float IL,theat,Pout;
};
typedef struct generator GENERATOR;
int main()
{
    int i=0,n;
    float sum=0,avg,low,high,il,theat;
    cout<<"Enter the value for 'n' : ";
    cin>>n;
    GENERATOR g[n];
    
    while(i>il>>theat;
        if(il>0&&theat>=35&&theat<=45){
        g[i].IL=il;
        g[i].theat=theat;
        g[i].Pout=sqrt(3)*il*cos(theat);
        cout<0 and theat>=-35 and theat<=45)";
    }
    i=1;
    while(ig[i].Pout)
            low=g[i].Pout;
        if(high