⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tchaosfunctionunit.cpp

📁 This file contains a C++Builder 4 project called SimplyChaos-X ver 3.1 (SCX31). SCX31 is an encry
💻 CPP
字号:
//---------------------------------------------------------------------------
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -