분류 전체보기
[Assembly Language] Big/Little-Endian 빅/리틀 엔디안
[Assembly Language] Big/Little-Endian 빅/리틀 엔디안
2022.03.17Big Endian 빅 엔디언: 숫자 비교에 유리, 네트워크를 통해 데이터를 전송할 때 사용. Little Endian 리틀 엔디언: 캐스팅에 유리, Intel과 AMD 환경에서는 Little-Endian방식으로 저장된다.
[Assembly Language] ASCII code 아스키 코드
[Assembly Language] ASCII code 아스키 코드
2022.03.17
[ASSEMBLY] SASM Assembly Language
[ASSEMBLY] SASM Assembly Language
2022.03.151 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 %include "io64.inc" section .text global CMAIN CMAIN: mov rbp, rsp; for correct debugging ;write your code here mov eax, 0x1234 mov rbx, 0x12345678 mov cl, 0xff mov al, 0x00 mov rax, rdx xor rax, rax ret ;section .data Colored by Color Scripter cs 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 31 32 33 34 35 36 ..
부티크 호텔
부티크 호텔
2022.03.15부티크 호텔 전형적인 숙박 이상의 경험을 제공하는 호텔. 투숙객이 특별한 목적을 가지고 방문을 하게 된다. 부티크 호텔의 정의는 다양하다. 'Stylish smallsize Hotel', '지역 커뮤니트의 스토리를 담은 호텔', '객실 n개 이하의 소규모 호텔', '디자인적 개성이 뚜렷한 호텔' 등등 절대적인 정의는 없다. 그 외에 격식 탈피, 월니스(Wellness), 비일상의 경험과 같은 키워드를 떠올리게 한다. Hoshinoya Omo Hotel / Japan Ace Hotel Anantara Nobu Ryokan Malibu 한국 L7 홍대 안다즈 호텔 by Hyatt 라이즈 오토그래프 컬렉션 by Marriot 레스케이프 호텔 드픽스 호텔 호텔 카푸치노 WELLNESS CATERING Noma ..
[Assembly Language] PE(Portable Executable) file structure
[Assembly Language] PE(Portable Executable) file structure
2022.03.14프로세스 메모리 구조 1 Bit = 0,1로 표현 가능 = 2^1 8 Bit = 1 Byte = -128~128 숫자 표현 가능 = 2^8 16 Bit = 2 Byte = 1 Word = -32,768~-32,768 숫자 표현 가능 = 2^16 32 Bit = 4 Byte = 2 Word = 1 dword (double-word) = 2^32 64 Bit = 8 Byte = 4 Word = 1qword (quad-word) = 2^64 ex. 포인터 32bit 운영체제에서는 4 Byte, 64bit 운영체제에서는 8 Byte이다. BIN (Binary) 2진수 ; 0 1 ; 0b (0b는 2진수를 나타낸다) ; 0b0 0b1 0b10 0b11 0b100 DEC (Decimal) 10진수 ; 0 1 2 3..
Pseudo code : Bull Cow Cartridge
Pseudo code : Bull Cow Cartridge
2022.03.10BullCowCartridge.h 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 // Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CoreMinimal.h" #include "Console/Cartridge.h" #include "BullCowCartridge.generated.h" UCLASS(ClassGroup=(Custom), meta=(BlueprintSpawnableComponent)) class BULLCOWGAME_API UBullCowCartridge : public UCartridge { GENER..
Pre-Increment/Decrement, Post-Increment/Decrement
Pre-Increment/Decrement, Post-Increment/Decrement
2022.03.101234567891011121314void UBullCowCartridge::OnInput(const Fstring& Input) // When the player hits enter{ int32 a = 1; int32 b = ++a; int32 c = ++ ++a; int32 d = a += 2; int32 e = a++; PrintLine(TEXT(%i, %i, %i, %i, %i), a, b, c, d, e); } Colored by Color Scriptercs Result 7, 2, 4, 6, 6
Visual Studio Code 단축키
Visual Studio Code 단축키
2022.03.10Ctrl + / = Toggle Line Comment // Shift + Alt + A = Toggle Block Comment /* */ Ctrl + K + C = Toggle Line Comment // Ctrl + K + U = Untoggle Line Comment Ctrl + D = Line Copy & Paste Ctrl + R R = Change name 이름 바꾸기 Ctrl + H = Replace (Ctrl + R R 이름 바꾸기 보다 더 자주 쓰인다) ------------------------------------------------------------- Ctrl + https://inpa.tistory.com/entry/VS-Co..
Ch 4.7 CircleRun
Ch 4.7 CircleRun
2022.03.0912345678910111213141516171819202122232425262728293031323334353637383940414243444546474849#include using namespace std; class Circle {public: void init(int xval, int yval, int r); void draw(); void move();private: int x, y, radius;}; void Circle::init(int xval, int yval, int r){ x = xval; y = yval; radius = r;} void Circle::draw() // 화면에 원 생성{ HDC hdc = GetWindowDC(GetForegroundWindow()); //화면에 원..
Ch 3 Hangman
Ch 3 Hangman
2022.03.091 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 31 32 33 34 35 36 37 38 39 40 #include #include using namespace std; int main() { char ch; string solution; string list[] = { "the", "cat", "programming", "language", }; int n = rand() % 4; solution = list[n]; string guess(solution.length(), '_'); while (true) { cout
Ch 4.6 Class
Ch 4.6 Class
2022.03.08car.h 1 2 3 4 5 6 7 8 9 10 11 12 13 #include #include using namespace std; class Car { int speed; int gear; string color; public: int getSpeed(); void setSpeed(int s); }; cs car.cpp 1 2 3 4 5 6 7 8 9 10 #include "car.h" int Car::getSpeed() { return speed; } void Car::setSpeed(int s) { speed = s; } cs main.cpp 1 2 3 4 5 6 7 8 9 10 11 12 13 14 #include "car.h" using namespace std; int main() { Car..
[북리뷰] 아주 작은 습관의 힘 (Atomic Habits)
[북리뷰] 아주 작은 습관의 힘 (Atomic Habits)
2019.05.08제목: 아주 작은 습관의 힘 Atomic habits 저자: James Clear 서평 삶은 복리다. 습관 또한 그렇다. 저자는 말한다. ‘하루 1% 성장은 1년 후 37배 성장이 된다.’ 모든 일에는 Tipping Point가 존재한다. 그 과정이 지루하고 가시적이지 않다고 변화가 없는것이 아니다. 완벽한 공부법의 저자 신영준 박사님이 이런 말을 했다. “태도가 전부입니다. 습관이 인생입니다”. 동감한다. 나는 영화 속 주인공처럼 독하지 않다. 하지만 나는 영화 속처럼 2시간만 존재하지 않는다. 내 인생을 요약할정도로 나이가 많지도 않다. 어제보다 더 나은 오늘을 살기 위해 발버둥치는 20대이다. 이 책은 습관 형성에 관한 설명과 실천 방법 모두 상세히 설명했다. 습관에 힘드는 분들은 저자의 방법을 실..