⭐ Programming
[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..