Yearly Archives | 2013

[C / C ] For example, reading record data type structure on the type of binary file in C

With Threads: Write a program to manage the notebook includes the following functions : Functions 1 : Functions imported products 2 : Sort products Function 3 : Product Search Function 1 : – Ask how many people use the product to be imported , then allows the user to enter information […]

[C / C ]get() and fget() in C/C – Warning when user gets() – Warning when use gets()

Normally we use a variable to enter the function scanf(), This function is used to enter 1 string but when met with blank sign (spaces, enter,…) then do not read anymore and that string was cut from, Example entry “nguyen van agency” then we only get “nguyen”. The fix here is that we use the function gets() to enter the string. 😀 Khi đó ta sẽ nhận được chuỗi nguyên vẹn.

[School_ĐHMT – Algorithm] General Principles of drawing straight lines

Read more 1. DDA algorithm to draw the line 2. Algorithm Breshenham draw straight lines 3. Midpoint Algorithm Given draw straight lines 2 endpoints M1(x1, y1), M2(x2, y2) and paint C. I already know the equation line through 2 M1 and M2 are points: Book I have to (1) Where m is called the steepness or slope of the line, b called passage […]

[School_ĐHMT] Midpoint algorithm to draw the line

Contents Construction algorithms Read more 1. General Principles of drawing straight lines 2. DDA algorithm to draw the line 3. Algorithm Building Breshenham draw straight lines algorithm Cho 2 endpoints M1(x1, y1), and M2(x2, y2). Equation line through M1, M2 form at step k + 1 we perform now increase x by one unit and attempt the x with y […]

[Schooll_ĐHMT] Algorithm Breshenham draw straight lines

Content 1. Construction algorithm 2. Flowchart algorithm 3. Code illustrations 4. Code for all cases Read more 1. General Principles of drawing straight lines 2. DDA algorithm to draw the line 3. Midpoint algorithm to draw the line 1. Construction algorithm Breshenham Cho 2 endpoints M1 (x1, y1), M2(x2, y2) and paint C. In general principles we draw the line […]

[Shool_DHMT] DDA algorithm to draw the line

Content 1. Construction algorithm 2. Flowchart algorithm 3. Code illustrations 4. Code for all cases Read more 1. General Principles of drawing straight lines 2. Algorithm Breshenham draw straight lines 3. Midpoint algorithm to draw the line 1. Construction DDA algorithm (Digital DifferentialAnalyzer) Give 2 endpoints M1 (x1, y1), M2(x2, y2) and paint C. In general principles draw straight lines […]

[Java]Standardized strings in Java – Standardize string in java

To normalize the string in Java, we need to remove the extra white space at the top, end and mid-strings. First we manually delete the spaces at the beginning and end by methods trim(). For example we have: Then followed our work will be cut out for extra spaces in between the strings. To do this there are many ways, I outlined here 2 substantially […]

[Java] Read recorded in the Java Object – Read Write Object in Java

To read recorded in the Java Object in the Object class in which we need to interface java.io.Serializable A simple example of reading record 1 Object MyStudent as follows: Result: My name is Nguyen Van Quan. I am 21 years old Note: When you open a file student.dat will see this kind of data: A more specific example of how to read and write, in such […]

[Algorithm] Interval Tree (Segment Tree) – Basswood

This document is written on Interval Tree relatively complete, clear and easy to understand. You watch and download here.

[Trivia] Provincial license plates

Cao Bang 11 no wrong Lang Son Northwest 12 carefulness 13 Hebei invited (*) Quang Ninh 14 four surface coal 15, 16 and bringing soil Haiphong North exuberant sentimental 17 Pacific region 18 Nam Dinh Phu Tho my hometown pretty beautiful 19 Lac Hong Thai Nguyen Thanh Kinh Sulfate, gang, Sometimes co-fifty (20) easy to remember in our hearts Yen Bai 21 Eww […]