Upload Code
loading-left
loading loading loading
loading-right

Loading

Profile
No self-introduction
codes (4)
Random drawing, speed control
no vote
Application background This is a written c# program, essence of drawing with a timer control to achieve the controllability of the speed, speed is adjustable, in a certain period of time drawing to achieve advanced human-computer interaction. In addition, graphics are random and can compare graphic size and enlarge the graphic characters describe graphics, determine the pattern name, & nbsp; public string name {get; set;}        public virtual void   Draw (Graphics g) {};        virtual double Square public () {return 0;}        static bool operator> public; MyShapes {return (S1 MyShapes, S2) s1.Square > (); =s2.Square ();}        static bool operator < public; = (S1 MyShapes, S2 MyShapes) {s1.Square < () return; =s2.Square ();} Key Technology S1 S2, MyShapes;            new; S1 = MyCircle (200, 100, 80);      &
康康康康康
2016-08-23
0
1
Drag the mouse dynamically draw rectangle, curve,
no vote
Application background Create a graphical list (which can be an Shape array, or use the container class List< T>) to save the graphics for the interface to draw..2 application toolbar can specify the type of graphics described in 13 receive the user's mouse operation, click the left button to start drawing, and drag the mouse to draw temporary graphics, release the mouse to determine graphics, add graphics list4 can refresh the window, when the maximum of the window to minimize the adjustment can re draw graphics. Key Technology     void pictureBox1_MouseDown private (sender MouseEventArgs, e object)        {            if (e.Button = MouseButtons.Left)&n;  
康康康康康
2016-08-23
1
1
Random k nearest neighbor
no vote
Application background K nearest neighbor (K-Nearest-Neighbor, KNN) is one of the simplest algorithms in data mining, which is used for target classification.. The basic principle is "jinzhuzhechi, howl". For example, some animal in a primitive forest (such as 1000), elephants, tigers, lions, dogs, lynx etc.. If you know the location of each animal (y, x). If someone tells you in the (a, b) is one of the animals, according to the KNN algorithm, you first find out from (a, b) recent five animals (k = 5) and find out the five animals most is what kind of animal, it can be predicted that (a, b) animals also belong to this kind of animal. Remember, you want to deposit the location and type of the animal in a file, format:10,34, tiger10,38, tiger109,35, lion104,40, lynx......Manual input 1000 animal is not a good idea, suggestion another program randomly generates several animals in an area and noted that usually is a social animal, if randomly assigned 1000 animals, KNN
康康康康康
2016-08-23
1
1
C# draw a straight line with the mouse
no vote
Application background To realize the dynamic drawing, and drag the mouse can dynamically generated graphics and color is adjustable. When you don't like the color when you can change different colors, painting a straight line, so the program is realized c# dynamic drawing, & nbsp; this program is my own series of the, deficiencies still hope everybody., thank you. We study together, progress together, like programming friends can often exchange. Key Technology Partial class Form1 public: Form    {        startPoint Point = Point new ();      / /   bool showPaint = false;        Form1 public ()        {            InitializeComponent ();       }        void Form1_MouseDown private (sender object, e MouseEventArgs)        {            new; s
康康康康康
2016-08-23
0
1
No more~