6.1.
(DLL) Microsoft Visual Studio.
6.2.
Windows - , - () . , - , ,
, - .
*.dll. *.dll , (, ) - (, ). , . *.dll . , , - , . , - *.dll, . , - *.dll, , , .
*.dll File ► New
► Project ( Class Library). Visual Studio - , - . 6.1 -
*.dll.
6.1.
using System;
using System.Collections.Generic;
using System.Text;
namespace ClassLibrary1
{
public class Class1
{
// ,
public int summ(int i, int j)
{
//
return i + j;
}
}
}
*.dll -
, . . 6.1.
. 6.1. , *.dll
, . , , 6.2.
6.2. , *.dll
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data; using System.Drawing; using System.Text;
using System.Windows.Forms;
using ClassLibrary1; //
namespace WindowsApplication6
{
public partial class Form1: Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
|
|
{
// *.dll
ClassLibrary1.Class1 meLib = new Class1();
//
int result=meLib.summ(Convert.ToInt16(textBox1.Text), Convert.ToInt16(textBox2.Text));
textBox3.Text = result.ToString();
}
}
}
-
, Project ► Add Reference ► Browse.
6.3.
, ( ). - (. 6.1) (
*.dll):
1. sh(x)=(ex-e-x)/2.
2. ch(x)= (ex+e-x)/2.
3. arcsh(x)=ln(x+(x2+1)1/2).
4. arcch(x)=ln(x+(x2-1)1/2).
5.
.
γ=0.57721566 .
7.
.
.
9. n!
10. th(x)=sh(x)/ch(x).
11.
.
13. n m
14. .
15. - .