, , , , , . .

 

 

!

 

:

:

 

 

 

?

StudentHelp, , MS Word. , , antiplagiat.ru, etxt.ru advego.ru. StudentHelp , Word .


:


:

: . : 06.09.2012. : 2011. : 7. antiplagiat.ru: < 30%

():


. ..
-




ߠ

"
"


. 091







..


2011





















. , -, , VI . , , . , , XV , XIX , .
. : 64- 8 , .
8 64- 4426165368. , , 92. , ( ) , , , . , , , , . : 16777216 ( 8, 8 ) 4426165368. , , , , 40320 ( 8!).
, , . Ÿ . . , .





1
, n n . , . .
:
    ;
    ;
    ;
    ;
    ;
    .







    2
    , 1:






























1 -

:
public void PlaceQueue - . , .
public void DisarrayQueen , .
DisarrayQueen:
    , ;
    , ;
    , PlaceQueue;
    IsSuitablePos, , ;
    , .
public bool IsSuitablePos , , . , .
private void ChangeSize - , , . , , .
private void Clear , .
. , , , .
, . , , , . ShowDesk . . . , , , .

    , :
private void ChangeSize(object sender, System.EventArgs e)
{
try
{
Queens.Queen.CountOfQueens = Int32.Parse(this.SizeDialog.SizeText.Text);
this.SizeDialog.Hide();
}
catch
{
Queens.Error.ShowError(" ");
this.SizeDialog.Hide();
}
}

, , :

public void DisarrayQueen(int Y)
{
if ( Y == this.NumOfQueens )
this.ExitProce = true; // ,
if (this.ExitProce == true) return; // , PlaceQueue
for (int IterX = 0; IterX < this.NumOfQueens; IterX ++)
if (this.IsSuitablePos(Y, IterX)) // IsSuitablePos
{
if (!this.ExitProce)
{// ,
this.Desk[Y] = IterX;
this.DisarrayQueen(Y + 1);
}}
}


2.1

++ -. , . , ++ , , , Visual Basic. , , /++. , . , Web. , , Visual Basic C++, , Web .
, Microsoft - C#. - , , , " ", . , COM+ Web . C# : C++, C, Java, SmallTalk, Delphi, Visual Basic .. , , C# , ( ) (, , ) . , , ++, .






















:
    Intel Pentium III 1000 ;
    VGA 32 ;
    128 ;
    3 ;
    Windows XP;
    Net.FrameWork 3.













3.
, . ButtonApply menuDequeue. FormSize.cs, menuSize. About.cs, menuAbout. Rules.cs menuRules.
ButtonApply. Queens.Queen.PlaceQueue(), Queens.cs. . . , , 0 N-1, N .
DisarrayQueen(1) , Y 1, 0- , . DisarrayQueen . , , . , , . , .
, PlaceQueensClick. Clear , . Clear , ShowDesk .
ShowDesk , , . using System.Drawing Brush - BrQueens BrNone, BrQueens , BrNone .













4.
, 8 8 :


2

, . :


3 ,

. :


4 12

, , . :

5




:



6

. , N N, N - , . , .
1848 . . , 60 . 72 . , 92 , . . . .
, 92 , 1874 . . ( ). ( ) .
() 90, 180 270, , .
.
, , .




1. .. : Windows. - , , 2003. 384 .
2. , . Microsoft Windows C#. . 2, ., - , ., 2002. -624 .: .
3. , , . C# . -, 2007. - 326 .
4. , . C#. "", ., 2004.





















Form.cs: //
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;

namespace Queens
{
/// <summary>
/// Summary description for Form1.
/// </summary>
public class FormQueens : System.Windows.Forms.Form
{
private System.Windows.Forms.MainMenu mainMenu;
private System.Windows.Forms.MenuItem menuItem1;
public System.Windows.Forms.Button ButtonApply;
public System.Windows.Forms.Panel Panel;
public FormSize SizeDialog;
private System.Windows.Forms.MenuItem menuSize;
private System.Windows.Forms.MenuItem menuDequeue;
private MenuItem menuItem2;
private MenuItem menuRules;
private MenuItem menuAbout;
private PictureBox pictureBox1;
private IContainer components;

public FormQueens()
{

InitializeComponent();
this.SizeDialog = new FormSize();
this.SizeDialog.buttonOK.Click += new EventHandler(this.ChangeSize);
}
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
private void ChangeSize(object sender, System.EventArgs e)
{//,
try
{
Queens.Queen.CountOfQueens = Int32.Parse(this.SizeDialog.SizeText.Text);
this.SizeDialog.Hide();
}
catch
{
Queens.Error.ShowError(" ");
this.SizeDialog.Hide();
}
}
public void ShowDesk()
{//
int DeltaX = this.Panel.Width / (Queens.Queen.CountOfQueens);
int DeltaY = this.Panel.Height / (Queens.Queen.CountOfQueens);
Graphics Grfx = this.Panel.CreateGraphics();
Brush BrQueens = new SolidBrush(Color.Red);
Brush BrNone = new SolidBrush(Color.LightGray);
for (int IterX = 0; IterX < Queens.Queen.CountOfQueens; IterX ++)
{
for (int IterY = 0; IterY < Queens.Queen.CountOfQueens; IterY ++)
{
Grfx.FillRectangle(BrNone, IterX * DeltaX + 1, IterY * DeltaY + 1, DeltaX - 2, DeltaY - 2);
}
Grfx.FillEllipse(BrQueens, IterX * DeltaX, Queens.Queen.Desk[IterX] * DeltaY, DeltaX, DeltaY);
}
}
private void menuSizeClick(object sender, System.EventArgs e)
{//,
try
{
this.SizeDialog.Show();
}
catch
{
this.SizeDialog = new FormSize();
this.SizeDialog.buttonOK.Click += new EventHandler(this.ChangeSize);
this.SizeDialog.Show();
}
}
private void SizeDialogHide(object sender, System.EventArgs e)
{
this.SizeDialog.Hide();
}
private void Clear() //
{
Graphics Grfx = this.Panel.CreateGraphics();
Brush Br = new SolidBrush(this.Panel.BackColor);
Grfx.FillRectangle(Br, 0, 0, this.Panel.Width, this.Panel.Height);
}
private void PlaceQueensClick(object sender, System.EventArgs e)
{//,
pictureBox1.Visible = false;
Queens.Queen.PlaceQueue();
this.Clear(); //
this.ShowDesk(); //
}

private void menuItem4_Click(object sender, EventArgs e)
{//
About d = new About();
d.Show();
}

private void menuItem3_Click(object sender, EventArgs e)
{//
Rules f = new Rules();
f.Show();
}

private void menuItem2_Click(object sender, EventArgs e)
{//
this.Close();
}
}
}
Queens.cs: //
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;

namespace Queens
{

public class Queens
{
private int NumOfQueens;
..................



90% antiplagiat.ru, etxt.ru advego.ru




* . , .