Author Archives

[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 […]

[Java] Remember to add the object to the file in java – Append object to file exist in java

After Reading scored objects from the file in java, there are many issues that you need to write more data on file. Usually we just declare, however after many attempts I have not done. Search for a while, apart from the extra stuff 2 is true as above, we need to override the following methods writeStreamHeader: 1. Quick Code to test 2. Code […]

[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] Read the Excel file in Java with JXL – Read write Excel file in Java with jxl

In the course of work and data processing we often have to interact with the file especially Excel File. Today I'll show you the simple steps to read Excel files recorded with JXL. JXL is a library package allows us to interact called Excel as read, record,.., Detailed information about the JXL package you see here. First of […]

About the android operating system

As you know Android is a mobile operating system the most popular current, as well as the fastest growing. So it is with great potential, although it also parallels there are other operating systems like iOS or WinPhone but here I just want to mention Android only.

[School] Exercise xml using xsl transformation

For example, I have an xml file that contains information the coefficient of rank PT 2. Using XSL to read the data in xml PT.