File|New|Project, Windows Forms Application, WindowsMySin, , г Lab1.
2 , (. 2.1).
. 1.1. sin(x)
2 . " Sin " , " " .
˳ 1.3.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsMySin
{
public partial class Form1: Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
double x = double.Parse(txt_x.Text);
int n = int.Parse(txt_n.Text);
// sin(x)
double my_sinus = MyLib.MySin.Sin(x, n);
// Math
double sinus = Math.Sin(x);
txt_y1.Text = my_sinus.ToString();
txt_y2.Text = sinus.ToString();
}
private void button2_Click(object sender, EventArgs e)
{
this.Close();
}
}
}
. :
. 1.2.
1.5.4. DLL- ( )
DLL- . . DLL- .
, Add Reference. г, .
.
㳿 .
Microsoft.NET - . '- .
.Net , ( EXE), ( DLL). .
, .
, (, ).
, DLL-.
|
|
DLL- , . .dll. (public) . DLL- (main), . , , . DLL- 㳿 .
1. ?
2. , ?
3. ? ?
4. ?
5. г ?
6. Dot.Net ?
7. ?
8. ?
9. DLL-? ?
10. XML- ? ?
11. public?
12. ?