์๋์ฐ์ฆ ํ๋ก๊ทธ๋๋ฐ ์ค์ต๋ฌธ์ 4๋ฒ์ ๋๋ค.
๋ค์๊ณผ ๊ฐ์ด Fraction
ํด๋์ค๋ฅผ ์ด์ฉํด ๋ถ์์ ์
๋ ฅ์ ๋ฐ์,
new Fraction(5, 6);
// https://repl.it/@Gumball12/Windows-programming-c-sharp-assignment-5-1 | |
using System; | |
using System.Linq; | |
class Problem_1 | |
{ | |
static void Main(string[] args) | |
{ | |
// tool |
/** | |
* Windows programming (c#) assignment 2.1 | |
* | |
* @author HaeJun Seo | |
* @since Mar 18, 2019 | |
*/ | |
// Mono C# compiler v4.6.2.0 | |
using System; |
/** | |
* Windows programming (c#) assignment 1.1 | |
* https://repl.it/@Gumball12/Windows-programming-c-sharp-assignment-11 | |
* | |
* @author HaeJun Seo | |
* @since Mar 14, 2019 | |
*/ | |
using System; |
Figure 2-26 shows a commonly used organization for raster systems.
๊ทธ๋ฆผ 2-26์ ์ผ๋ฐ์ ์ผ๋ก ์ฌ์ฉ๋๋ raster system์ ๊ตฌ์กฐ๋ฅผ ๋ณด์ฌ์ค๋ค.
A fixed area of the system memory is reserved for the frame buffer, and the video controller is given direct access to the frame-buffer memory.
system memory์ frame buffer๋ฅผ ์ํ ๊ณ ์ ๋ ์์ญ์ ์์ฝํด ๋๊ณ , Video controller๊ฐ ์ด frame-buffer memory์ ์ง์ ์ ๊ทผํ๋ ๊ฒ์ด๋ค.
//gcc 5.4.0 | |
/** ๋ก๋ | |
* | |
* # Rules | |
* > ์ซ์๋ 1 ~ 45 | |
* > ์ด 7 ๊ฐ์ ์ซ์๋ฅผ ๋ฝ๋๋ค | |
* | |
* # Process | |
* 1. 7 ๊ฐ์ ์ซ์๋ฅผ ์ ๋ ฅํ๋ค |
// *** ๋ก๋ *** | |
// # Rules | |
// * ์ซ์๋ 1 ~ 45 | |
// * 7๊ฐ์ ์ซ์๋ฅผ ๋ฝ๋๋ค | |
// # Process | |
// 1. 7๊ฐ์ ์ซ์๋ฅผ ์ ๋ ฅํ๋ค | |
// 2. 1 ~ 45 ๋ถํฐ ํ๋์ฉ ๋๋ค์ผ๋ก ๋ฝ์๊ฐ๋ฉฐ ์ด 7๊ฐ์ ์ซ์๋ฅผ ์ถ๋ ฅํ๋ค. | |
// 3. ์ฌ์ฉ์๊ฐ ์ ๋ ฅํ ์ซ์์ ๋๋ค์ผ๋ก ๋ฝํ ์ซ์๋ฅผ ๋น๊ตํด ๋ง์ ๊ฐฏ์๋ฅผ ์ถ๋ ฅํ๋ค. |