This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// main.cpp | |
// cppToBitcore | |
// | |
// Created by 곽대용 on 2018. 7. 22.. | |
// Copyright © 2018년 dany. All rights reserved. | |
// | |
//c++ 에서 사용하는 객체를사용하는데 이 헤더가 필요하다. | |
#include <iostream> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// main.cpp | |
// cppToBitcore | |
// | |
// Created by 곽대용 on 2018. 7. 22.. | |
// Copyright © 2018년 dany. All rights reserved. | |
// | |
//c++ 에서 사용하는 객체를사용하는데 이 헤더가 필요하다. | |
#include <iostream> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//매크로 정의 | |
#define addm(a,b)((a)+(b)) | |
//using namespace | |
using namespace std; | |
//인라인함수 | |
//참조자 파라미터 | |
inline void refTest(int& param){ | |
param = 100; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
int main(int argc, const char * argv[]) { | |
std::cout << "Hello, World!" << std::endl; | |
std::cout << 10 << std::endl; | |
std::cout << 0.8 << std::endl; | |
std::cout << "나는" << 28 << "살이다" << std::endl; | |
int age; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.4; | |
contract test{ | |
uint256 val; | |
function setVal(uint a){ | |
val = a; | |
} | |
function getVal() constant returns (uint256){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package chapter2; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; | |
import java.util.Optional; | |
import java.util.stream.Collectors; | |
import java.util.stream.Stream; | |
public class StreamEx { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//필터 적용 전 | |
@PostMapping("/table") | |
public List<ProfitTable> table(String selected) throws IOException{ | |
List<Profit> profits; | |
if(selected == null || "all".equals(selected)){ | |
profits = profitService.findAll(); | |
} else { | |
profits = profitService.findByCoin(selected); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Apple{ | |
private String color; | |
private Integer weight; | |
public void setColor(String color) { | |
this.color = color; | |
} | |
public void setWeight(Integer weight) { | |
this.weight = weight; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class PredicateParameter { | |
public static void main(String [] args){ | |
//빨갛고 무거운 사과를 얻겠다면 | |
List<Apple> apples = new ArrayList<>(); | |
List<Lemon> lemons = new ArrayList<>(); | |
List<String> words = new ArrayList<>(); | |
filter(apples, (Apple apple) -> "red".equals(apple.getColor()) && apple.getWeight()>150); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Main.java | |
import java.util.Scanner; | |
public class Main { | |
public static void main(String[]args) { | |
Scanner scanner = new Scanner(System.in); | |
boolean isLogin = false; | |
User loginUser = new User(); |