Skip to content

Instantly share code, notes, and snippets.

@Gumball12
Gumball12 / lotto.java
Created October 3, 2018 08:52
Lotto MVC
// *** 로또 ***
// # Rules
// * 숫자는 1 ~ 45
// * 7개의 숫자를 뽑는다
// # Process
// 1. 7개의 숫자를 입력한다
// 2. 1 ~ 45 부터 하나씩 랜덤으로 뽑아가며 총 7개의 숫자를 출력한다.
// 3. 사용자가 입력한 숫자와 랜덤으로 뽑힌 숫자를 비교해 맞은 갯수를 출력한다.
//gcc 5.4.0
/** 로또
*
* # Rules
* > 숫자는 1 ~ 45
* > 총 7 개의 숫자를 뽑는다
*
* # Process
* 1. 7 개의 숫자를 입력한다
@Gumball12
Gumball12 / Assignment1_1.cs
Last active March 18, 2019 09:20
Windows programming (c-sharp) assignment 1
/**
* 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;
@Gumball12
Gumball12 / open-assignment-week2.md
Last active March 18, 2019 11:58
opengl assignments

Video Controller

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에 직접 접근하는 것이다.

@Gumball12
Gumball12 / Assigmnet2_1.cs
Last active March 19, 2019 10:14
c# assignments 2
/**
* Windows programming (c#) assignment 2.1
*
* @author HaeJun Seo
* @since Mar 18, 2019
*/
// Mono C# compiler v4.6.2.0
using System;
@Gumball12
Gumball12 / README.md
Last active March 31, 2019 18:06
c# assignments 4

Windows Programming (C#) assignments - 4

윈도우즈 프로그래밍 실습문제 4번입니다.

Problem 1

다음과 같이 Fraction 클래스를 이용해 분수의 입력을 받아,

new Fraction(5, 6);
@Gumball12
Gumball12 / Assignment5_1.cs
Last active April 5, 2019 02:59
c# assignments
// 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
@Gumball12
Gumball12 / Problem_1.cs
Last active April 14, 2019 03:23
c# assignment - week7
// import modules
using System;
using System.Collections.Generic;
using System.Linq;
class Problem_1
{
static void Main(string[] args)
{
// define Student list
@Gumball12
Gumball12 / Game.cs
Last active April 21, 2019 04:23
c# assignment week7
using System;
public abstract class Game
{
// instance variables
protected int userWin, computerWin, drawn;
// constructor
public Game ()
{
@Gumball12
Gumball12 / cs.md
Last active April 25, 2019 01:18
시험용

Introduce

참고로 c#은 console과 winform 둘 다 개발이 가능.

Introduction to cs

전체적으로 한 번 훑어보자.

operators

일반적으로 C와 비슷함. 다만 다음이 있음.

  • type testing operator