tchaosfunctionunit.cpp
来自「This file contains a C++Builder 4 projec」· C++ 代码 · 共 41 行
CPP
41 行
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "TChaosFunctionUnit.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
double TChaosFunction::StepIt(void)
{
StepValue = StepValue * 3.9999 * (1 - StepValue);
return StepValue;
}
TChaosFunction::TChaosFunction()
{
StepValue = 0.0;
}
int __fastcall TChaosFunction::StartCycle(double StartValue)
{
int i;
if(StartValue < 1.0 && StartValue > 0) {
StepValue = StartValue;
for(i = 1; i <= 50; i++)
{
StepValue = StepValue * 3.9999 * (1 - StepValue);
}
return 1;
}
else
return 0;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?