목록Unity (205)
스토리지
값 형식 : bool (4 byte, 자바에서는 boolean, 1byte이다.), int (4 byte), char(1 byte) - 스택영역에 저장됨. (주로 정적으로 할당된 값들이 저장되는거 같다.) 참조 형식 : object, string (크기가 정해져있지 않음) - 힙 영역에 저장되며 스택 영역에 힙 영역을 가리키는 주소가 저장됨. (주로 *동적으로 할당된 값들이 저장되는거 같다l, int, char - 스택영역에 저장됨. (주로 정적으로 할당된 값들이 저장되는거 같다.)

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Study00 { class Program { static void Main(string[] args) { string itemName = "후회의 지옥문 장치"; string subName = "차원문 장치"; int maxValue = 5000; int requireLevel = 70; bool isBelong = true; Console.WriteLine("아이템 이름 : {0}", itemName); Console.WriteLine("아이템 종류 : {0}", subName)..
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace study00 { class Program { enum Race { Terran, Protoss, Zerg } enum Size { Small, Medium, Large } enum Produced { Barracks, Factory, Starport, Gateway } static void Main(string[] args) { string unitName = "Dark Templar"; Race unitRace = Race.Protoss; Size unitSize = Size.S..
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace study00 { class Program { enum Race { Terran, Protoss, Zerg } enum Size { Small, Medium, Large } enum Produced { Barracks, Factory, Starport } static void Main(string[] args) { string unitName = "Vulture"; Race unitRace = Race.Terran; Size unitSize = Size.Medium; int sigh..
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace study00 { class Program { enum Race { Terran, Protoss, Zerg } enum TankMode { Assault, Siege } static void Main(string[] args) { string unitName = "Siege Tank"; Race unitRace = Race.Terran; int sight = 10; TankMode unitTankMode = TankMode.Assault; int groundAttack = 30; i..