.


:




:

































 

 

 

 


,

1. . .

2. VC# .

3. .

4. VS .

5. File .

6. .

 

1.

1.9-1.

2. MS Windows

, .1.

3. , : , , .

4. /

.

, .

5. ,

, .

6. ,

.

7. .

8. .

 

1.9-1.

1.

2.

3.

4. :

4.1. ;

4.2. ;

4.3. .

5. .

6. .

 

-4-10-.

 

, a b, , , a , b, .

. 1.10-1.

. 1.10-1

.

, . 1.10-2, vvod(), vivod(), (), () ().

, ,

,

,

( ) ,

.

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; using System.IO;   namespace WindowsFormsApplication2 { public partial class Form1: Form { public Form1() { InitializeComponent(); }   private void button1_Click(object sender, EventArgs e) { String wayF1="",str1=""; wayF1 =vvod(textBox1); (str1, wayF1); vivod(textBox2,str1); }   private void button2_Click(object sender, EventArgs e) { String wayF1 = ""; String str1 = ""; wayF1 =vvod(textBox1); (wayF1,ref str1); }   private void button3_Click(object sender, EventArgs e) { String str1="",str2 = ""; String wayF2= ""; wayF2 = vvod(textBox5); (wayF2, str2); (str2, str1); vivod(textBox3,str2); vivod(textBox4, str1); }   private void button4_Click(object sender, EventArgs e) { Close(); }   private String vvod(TextBox t) { return t.Text; }   private void vivod(TextBox t, String s) { if (s.Length!= 0) t.Text = s; else t.Text = " "; }   // private void (String b, String a) {int d, m, i, j; m = a.Length; // a d = b.Length; // b for(i = 0; i<=d-1;i+=2) // { j = 0; while (j < m) // a if (a.Substring(j, 1) == b.Substring(i, 1)) { a = a.Remove(j, 1); //. .- a m --;} // a else j++; // . a } }   // private void (String wayF,ref String str1) { if (File.Exists(wayF)== true) if (MessageBox.Show(" . ?","MessageBoxHelloWorld", MessageBoxButtons.YesNo) == DialogResult.Yes)   {// . try{ File.WriteAllText(wayF, str1); // My.Computer.FileSystem.WriteAllText(, Str1, False) } catch { MessageBox.Show(" "); // "" & vbCrLf & vbCrLf & ex.Message); }} }   // private void (String str3, String filename) { // . try { str3 = File.ReadAllText(filename);} catch { //Exception ex; MessageBox.Show(" "); // & _ " - :" & vbCrLf & vbCrLf & ex.Message) }} }}

. 1.10-2

 



<== | ==>
A- π- |
:


: 2017-03-12; !; : 432 |


:

:

.
==> ...

1640 - | 1619 -


© 2015-2024 lektsii.org - -

: 0.012 .