노드를 관리하는 NodeData 클래스Stack을 관리하는 Stack 클래스그리고 string 관련 입력을 stack 객체와 연결시켜주는 main함수로 구성이 됨. NodeData 클래스를 만드는 이유는?굳이 이 문제에서는 한번에 Stack안에서 처리해도 상관은 없지만 캡슐화를 위해서 일부러 빼둠.혹시나 나중에 int형이 아닌 다른 데이터를 처리한다면? Stack을 모조리 바꿔야한다... 하지만 데이터관련 노드를 따로 클래스로 빼두면 NodeData클래스만 수정하여 사용이 가능. //// main.cpp// algorithm//// Created by Eon on 12/27/18.// Copyright © 2018 Eon. All rights reserved.// #include #include usin..
//// ViewController.swift// My Application//// Created by Eon on 03/12/2018.// Copyright © 2018 EonseokYim. All rights reserved.// import UIKitimport GameplayKit class ViewController: UIViewController { let randomSource = GKARC4RandomSource() @IBOutlet weak var computerImageView: UIImageView! @IBOutlet weak var playerImageView: UIImageView! @IBOutlet weak var messageLabel: UILabel! override func..
//////////////////////////////////////////////변수 & 상수//////////////////////////////////////////////var & let을 사용하여 변수, 상수 지정함. 타입은 자동으로 저장되는 값에서 지정이됨.var variable = 100 //변수선언 키워드 varlet literal = 100 //상수선언 키워드 letvar str = "Hello, playground"var num = Int() //빈 int 선언. //비어있는 변수를 저장하려면 무조건 :콜론을 사용하여 형을 선택해줘여함var numm:Int //빈 int 선언.//Int, Double, Float, Bool, String 등등 타입을 지정해주면됨. num = 50numm..
핵심구현Zxing(Zebra Crossing) Library - QR코드 스캔AsyncTask class 사용하여 서버 접근 - Json을 넘겨주는 서버에 접속하여 값을 가져옴openFileOutput 함수를 사용하여 내부 스토리지에 파일 write 및 read 중복되는코드가 많고... 코드가 너무 더럽다... 너무시간에재촉되나보니...덕지덕지짠거같다...ㅎㅎ MainActivity.javapublic class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.a..
//Serialization and File I/O //Serialization//WriteFileOutputStream f = new FileOutputStream("filename");ObjectOutputStream os = new ObjectOutputStream(f);os.writeObject(myFoo);os.close();//ReadFileInputStream f = new FileInputStream("filename");ObjectInputStream os = new ObjectInputStream(f);Object a = os.readObject();Foo myFoo = (Foo) a;//File I/O//File AccessFile f = new File("filename"); //파..
First, write a function class Solution { public int solution(int[] A); }that, given a zero-indexed array A consisting of N integers, returns the number of distinct values in array A. For example, given array A consisting of six elements such that:A[0] = 5 A[1] = 1 A[2] = 1 A[3] = 5 A[4] = 7 A[5] = 1the function should return 3, because there are 3 distinct values appearing in array A, namely 1, ..
Write a Java program to answer about the statistical information such as arithmetic mean, median, mode, and standard deviation of an integer data set. (The arithmetic median, median, and mode mean that the arithmetic average, mid-point of the distribution, and most frequent response, respectively.) The input data can be generated by random method or keyboard. Your program should display the outp..
- Total
- Today
- Yesterday
- NAS
- 우분투
- 서버
- 자바
- 맥북
- 산업화
- eclipse
- 코드업
- 알고리즘
- python
- 맥
- 모바일 프로그래밍
- 문제
- egpu
- C++
- Java
- 외장그래픽
- se846
- 슈어
- 이클립스
- 카카오톡
- 프로그래밍
- 환경오염
- 개발
- 아키티오
- 코딩
- Vega64
- 백준
- CodeUp
- 파이썬
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |