- Visual C++源码
- Visual Basic源码
- C++ Builder源码
- Java源码
- Delphi源码
- C/C++源码
- PHP源码
- Perl源码
- Python源码
- Asm源码
- Pascal源码
- Borland C++源码
- Others源码
- SQL源码
- VBScript源码
- JavaScript源码
- ASP/ASPX源码
- C#源码
- Flash/ActionScript源码
- matlab源码
- PowerBuilder源码
- LabView源码
- Flex源码
- MathCAD源码
- VBA源码
- IDL源码
- Lisp/Scheme源码
- VHDL源码
- Objective-C源码
- Fortran源码
- tcl/tk源码
- QT源码
Form1.frm
资源名称:TELEPHONE.rar [点击查看]
上传用户:woden7206
上传日期:2015-11-28
资源大小:14486k
文件大小:2k
源码类别:
单片机开发
开发平台:
MultiPlatform
- VERSION 5.00
- Begin VB.Form Form1
- Caption = "Form1"
- ClientHeight = 7980
- ClientLeft = 60
- ClientTop = 450
- ClientWidth = 8565
- LinkTopic = "Form1"
- ScaleHeight = 7980
- ScaleWidth = 8565
- StartUpPosition = 3 '窗口缺省
- Begin VB.CommandButton Command1
- Caption = "计算"
- Height = 615
- Left = 6360
- TabIndex = 1
- Top = 480
- Width = 1575
- End
- Begin VB.TextBox txtInfo
- Height = 6855
- Left = 360
- MultiLine = -1 'True
- ScrollBars = 2 'Vertical
- TabIndex = 0
- Top = 480
- Width = 5535
- End
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Const MAX_CNT = 512
- Private Sub Command1_Click()
- Dim i As Long
- Dim t As Double
- For i = 0 To MAX_CNT - 1
- t = Sin(3.14159265758 * 2# * CDbl(i) / 128) 'CDbl(MAX_CNT))
- t = t * 127 + 128
- s = Sin(3.14159265758 * 2# * CDbl(i) * 1209 / 697 / 128) 'CDbl(MAX_CNT)))
- s = s * 127 + 128
- x = (t + s) 2
- 'txtInfo.Text = txtInfo.Text + vbTab + Str(i) + ":" + Str(CInt(t)) + Str(CInt(s)) + Str(CInt(x)) + ";" + vbCrLf
- txtInfo.Text = txtInfo.Text + vbTab + Str(CInt(x)) + vbCrLf
- Next
- End Sub