📄 u11_6_1.cpp
字号:
//------------------ u11_6_1 ---------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "u11_6_1.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
Tf11_6_1 *f11_6_1;
//---------------------------------------------------------------------------
__fastcall Tf11_6_1::Tf11_6_1(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall Tf11_6_1::Button2Click(TObject *Sender)
{
Close();
}
//---------------------------------------------------------------------------
void __fastcall Tf11_6_1::btnInputClick(TObject *Sender)
{
int factorial(int);
int fibnaci(int);
int num,fib;
//edtInput->SetFocus ();
num=StrToInt(edtInput->Text);
lblMsg1->Caption=IntToStr(num)+" ! = " ;
lblFactorial->Caption=factorial(num);
fib=fibnaci(num);
lblMsg2->Caption="禣んf(" + IntToStr(num) + ")
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -